Skip to main content

bg-purple-600

Tailwind Purple 600

#9333EA·Purple family·Shade 600

Color Values

HEX
#9333EA
RGB
rgb(147, 51, 234)
HSL
hsl(271, 81%, 56%)
OKLCH
oklch(0.558 0.252 302)
CMYK
cmyk(37%, 78%, 0%, 8%)
CSS Variable
var(--color-purple-600)
Tailwind Class
bg-purple-600

Accessibility Score

60/100

Good

Based on WCAG 2.1 contrast ratios against white and black backgrounds.

On White

5.38:1

AA

On Black

3.9:1

AA Large
Test in Contrast Checker →

Tailwind Usage — All Utilities

Background

bg-purple-600

Text

text-purple-600

Border

border-purple-600

Ring

ring-purple-600

Outline

outline-purple-600

Fill

fill-purple-600

Stroke

stroke-purple-600

From (gradient)

from-purple-600

Via (gradient)

via-purple-600

To (gradient)

to-purple-600

Placeholder

placeholder-purple-600

Caret

caret-purple-600

Accent

accent-purple-600

Decoration

decoration-purple-600

Shadow Color

shadow-purple-600

Tailwind v3 Config (extend custom color)

// tailwind.config.js module.exports = { theme: { extend: { colors: { 'purple-600': '#9333ea', }, }, }, };

CSS Equivalent

/* Hex */
background-color: #9333EA;

/* RGB */
background-color: rgb(147, 51, 234);

/* HSL */
background-color: hsl(271, 81%, 56%);

/* OKLCH (CSS Color Level 4) */
background-color: oklch(0.558 0.252 302);

/* CSS Custom Property (Tailwind v4) */
background-color: var(--color-purple-600);

/* Gradient example */
background: linear-gradient(135deg, #faf5ff 0%, #7e22ce 100%);

OKLCH — Modern Color Space

Lightness (L)

0.558

56% perceived brightness

Chroma (C)

0.252

Color intensity / saturation

Hue (H)

302°

Angle on perceptual hue wheel

oklch(0.558 0.252 302)

OKLCH is a perceptually uniform color space in CSS Color Level 4. Unlike HSL, equal steps in L produce equal perceived lightness changes — making it ideal for building accessible, harmonious design system scales.

Design Recommendations

Accessible primary action

Shade 600 of the Purple palette

Recommended Uses

  • Primary buttons on white (passes AA)
  • Active state fills
  • Bold text links
  • Form borders on focus
  • Strong icon fills

Avoid

Text on dark backgrounds — may fall below required contrast.

Preview

On White

Aa Bb Cc

On Black

Aa Bb Cc

As Background

Aa Bb Cc — #9333EA

Frequently Asked Questions

What is the hex code for Tailwind Purple 600?
Tailwind Purple 600 has the hex code #9333EA. Its RGB value is rgb(147, 51, 234) and its HSL value is hsl(271, 81%, 56%).
What Tailwind utility classes use Purple 600?
Use bg-purple-600 for backgrounds, text-purple-600 for text color, border-purple-600 for borders, and ring-purple-600 for focus rings. In Tailwind v4 the CSS variable var(--color-purple-600) is available natively.
Is Tailwind Purple 600 WCAG accessible?
Tailwind Purple 600 achieves a 5.38:1 contrast ratio on white (AA) and 3.9:1 on black (AA Large). Its overall accessibility score is 60/100 (Good).
What is the OKLCH value for Tailwind Purple 600?
Tailwind Purple 600 in OKLCH is oklch(0.558 0.252 302) — lightness 0.558, chroma 0.252, hue 302°. OKLCH is a perceptually uniform space supported natively in modern CSS via the `color()` function.
What is Tailwind Purple 600 used for?
At shade 600, Tailwind Purple 600 is best described as "Accessible primary action". Recommended uses: Primary buttons on white (passes AA), Active state fills, Bold text links.