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
Good
Based on WCAG 2.1 contrast ratios against white and black backgrounds.
On White
2.64:1
On Black
7.95:1
Tailwind Usage — All Utilities
Background
bg-purple-400Text
text-purple-400Border
border-purple-400Ring
ring-purple-400Outline
outline-purple-400Fill
fill-purple-400Stroke
stroke-purple-400From (gradient)
from-purple-400Via (gradient)
via-purple-400To (gradient)
to-purple-400Placeholder
placeholder-purple-400Caret
caret-purple-400Accent
accent-purple-400Decoration
decoration-purple-400Shadow Color
shadow-purple-400Tailwind 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
Preview
On White
Aa Bb Cc
On Black
Aa Bb Cc
As Background
Aa Bb Cc — #C084FC
Similar Tailwind Colors
Perceptually close shades from other Tailwind color families.
Nearest Named Color
Tailwind Purple 400
Nearest Tailwind equivalent — #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.