Color Values
- HEX
- #581C87
- RGB
- rgb(88, 28, 135)
- HSL
- hsl(274, 66%, 32%)
- OKLCH
- oklch(0.381 0.166 305)
- CMYK
- cmyk(35%, 79%, 0%, 47%)
- CSS Variable
- var(--color-purple-900)
- Tailwind Class
- bg-purple-900
Accessibility Score
Good
Based on WCAG 2.1 contrast ratios against white and black backgrounds.
On White
10.88:1
On Black
1.93:1
Tailwind Usage — All Utilities
Background
bg-purple-900Text
text-purple-900Border
border-purple-900Ring
ring-purple-900Outline
outline-purple-900Fill
fill-purple-900Stroke
stroke-purple-900From (gradient)
from-purple-900Via (gradient)
via-purple-900To (gradient)
to-purple-900Placeholder
placeholder-purple-900Caret
caret-purple-900Accent
accent-purple-900Decoration
decoration-purple-900Shadow Color
shadow-purple-900Tailwind v3 Config (extend custom color)
// tailwind.config.js
module.exports = {
theme: {
extend: {
colors: {
'purple-900': '#581c87',
},
},
},
};CSS Equivalent
/* Hex */
background-color: #581C87;
/* RGB */
background-color: rgb(88, 28, 135);
/* HSL */
background-color: hsl(274, 66%, 32%);
/* OKLCH (CSS Color Level 4) */
background-color: oklch(0.381 0.166 305);
/* CSS Custom Property (Tailwind v4) */
background-color: var(--color-purple-900);
/* Gradient example */
background: linear-gradient(135deg, #faf5ff 0%, #3b0764 100%);OKLCH — Modern Color Space
Lightness (L)
0.381
38% perceived brightness
Chroma (C)
0.166
Color intensity / saturation
Hue (H)
305°
Angle on perceptual hue wheel
oklch(0.381 0.166 305)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
Strong dark tone
Shade 900 of the Purple palette
Recommended Uses
- ✓Body text on white
- ✓Dark panel backgrounds
- ✓Near-dark UI elements
- ✓Footer backgrounds
- ✓High-contrast headings
Avoid
Preview
On White
Aa Bb Cc
On Black
Aa Bb Cc
As Background
Aa Bb Cc — #581C87
Similar Tailwind Colors
Perceptually close shades from other Tailwind color families.
Nearest Named Color
Tailwind Purple 900
Nearest Tailwind equivalent — #581C87
Frequently Asked Questions
- What is the hex code for Tailwind Purple 900?
- Tailwind Purple 900 has the hex code #581C87. Its RGB value is rgb(88, 28, 135) and its HSL value is hsl(274, 66%, 32%).
- What Tailwind utility classes use Purple 900?
- Use bg-purple-900 for backgrounds, text-purple-900 for text color, border-purple-900 for borders, and ring-purple-900 for focus rings. In Tailwind v4 the CSS variable var(--color-purple-900) is available natively.
- Is Tailwind Purple 900 WCAG accessible?
- Tailwind Purple 900 achieves a 10.88:1 contrast ratio on white (AAA) and 1.93:1 on black (Fail). Its overall accessibility score is 60/100 (Good).
- What is the OKLCH value for Tailwind Purple 900?
- Tailwind Purple 900 in OKLCH is oklch(0.381 0.166 305) — lightness 0.381, chroma 0.166, hue 305°. OKLCH is a perceptually uniform space supported natively in modern CSS via the `color()` function.
- What is Tailwind Purple 900 used for?
- At shade 900, Tailwind Purple 900 is best described as "Strong dark tone". Recommended uses: Body text on white, Dark panel backgrounds, Near-dark UI elements.