Skip to main content

bg-purple-400

Tailwind Purple 400

#C084FC·Purple family·Shade 400

Color Values

HEX
#C084FC
RGB
rgb(192, 132, 252)
HSL
hsl(270, 95%, 75%)
OKLCH
oklch(0.722 0.177 306)
CMYK
cmyk(24%, 48%, 0%, 1%)
CSS Variable
var(--color-purple-400)
Tailwind Class
bg-purple-400

Accessibility Score

60/100

Good

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

On White

2.64:1

Fail

On Black

7.95:1

AAA
Test in Contrast Checker →

Tailwind Usage — All Utilities

Background

bg-purple-400

Text

text-purple-400

Border

border-purple-400

Ring

ring-purple-400

Outline

outline-purple-400

Fill

fill-purple-400

Stroke

stroke-purple-400

From (gradient)

from-purple-400

Via (gradient)

via-purple-400

To (gradient)

to-purple-400

Placeholder

placeholder-purple-400

Caret

caret-purple-400

Accent

accent-purple-400

Decoration

decoration-purple-400

Shadow Color

shadow-purple-400

Tailwind v3 Config (extend custom color)

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

CSS Equivalent

/* Hex */
background-color: #C084FC;

/* RGB */
background-color: rgb(192, 132, 252);

/* HSL */
background-color: hsl(270, 95%, 75%);

/* OKLCH (CSS Color Level 4) */
background-color: oklch(0.722 0.177 306);

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

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

OKLCH — Modern Color Space

Lightness (L)

0.722

72% perceived brightness

Chroma (C)

0.177

Color intensity / saturation

Hue (H)

306°

Angle on perceptual hue wheel

oklch(0.722 0.177 306)

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

Mid-tone accent

Shade 400 of the Purple palette

Recommended Uses

  • Icon fills on white
  • Secondary buttons (large text)
  • Chart & data visualization bars
  • Decorative UI elements

Avoid

Body text on white — often fails WCAG AA for normal text.

Preview

On White

Aa Bb Cc

On Black

Aa Bb Cc

As Background

Aa Bb Cc — #C084FC

Frequently Asked Questions

What is the hex code for Tailwind Purple 400?
Tailwind Purple 400 has the hex code #C084FC. Its RGB value is rgb(192, 132, 252) and its HSL value is hsl(270, 95%, 75%).
What Tailwind utility classes use Purple 400?
Use bg-purple-400 for backgrounds, text-purple-400 for text color, border-purple-400 for borders, and ring-purple-400 for focus rings. In Tailwind v4 the CSS variable var(--color-purple-400) is available natively.
Is Tailwind Purple 400 WCAG accessible?
Tailwind Purple 400 achieves a 2.64:1 contrast ratio on white (Fail) and 7.95:1 on black (AAA). Its overall accessibility score is 60/100 (Good).
What is the OKLCH value for Tailwind Purple 400?
Tailwind Purple 400 in OKLCH is oklch(0.722 0.177 306) — lightness 0.722, chroma 0.177, hue 306°. OKLCH is a perceptually uniform space supported natively in modern CSS via the `color()` function.
What is Tailwind Purple 400 used for?
At shade 400, Tailwind Purple 400 is best described as "Mid-tone accent". Recommended uses: Icon fills on white, Secondary buttons (large text), Chart & data visualization bars.