Color Values
- HEX
- #5B21B6
- RGB
- rgb(91, 33, 182)
- HSL
- hsl(263, 69%, 42%)
- OKLCH
- oklch(0.432 0.211 293)
- CMYK
- cmyk(50%, 82%, 0%, 29%)
- CSS Variable
- var(--color-violet-800)
- Tailwind Class
- bg-violet-800
Accessibility Score
Good
Based on WCAG 2.1 contrast ratios against white and black backgrounds.
On White
8.98:1
On Black
2.34:1
Tailwind Usage — All Utilities
Background
bg-violet-800Text
text-violet-800Border
border-violet-800Ring
ring-violet-800Outline
outline-violet-800Fill
fill-violet-800Stroke
stroke-violet-800From (gradient)
from-violet-800Via (gradient)
via-violet-800To (gradient)
to-violet-800Placeholder
placeholder-violet-800Caret
caret-violet-800Accent
accent-violet-800Decoration
decoration-violet-800Shadow Color
shadow-violet-800Tailwind v3 Config (extend custom color)
// tailwind.config.js
module.exports = {
theme: {
extend: {
colors: {
'violet-800': '#5b21b6',
},
},
},
};CSS Equivalent
/* Hex */
background-color: #5B21B6;
/* RGB */
background-color: rgb(91, 33, 182);
/* HSL */
background-color: hsl(263, 69%, 42%);
/* OKLCH (CSS Color Level 4) */
background-color: oklch(0.432 0.211 293);
/* CSS Custom Property (Tailwind v4) */
background-color: var(--color-violet-800);
/* Gradient example */
background: linear-gradient(135deg, #f5f3ff 0%, #4c1d95 100%);OKLCH — Modern Color Space
Lightness (L)
0.432
43% perceived brightness
Chroma (C)
0.211
Color intensity / saturation
Hue (H)
293°
Angle on perceptual hue wheel
oklch(0.432 0.211 293)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
Deep tone for text & UI
Shade 800 of the Violet palette
Recommended Uses
- ✓Heading text on white
- ✓Icon fills on light backgrounds
- ✓Dark sidebar fills
- ✓Strong badge colors
- ✓Section dividers
Avoid
Preview
On White
Aa Bb Cc
On Black
Aa Bb Cc
As Background
Aa Bb Cc — #5B21B6
Similar Tailwind Colors
Perceptually close shades from other Tailwind color families.
Nearest Named Color
Tailwind Violet 800
Nearest Tailwind equivalent — #5B21B6
Frequently Asked Questions
- What is the hex code for Tailwind Violet 800?
- Tailwind Violet 800 has the hex code #5B21B6. Its RGB value is rgb(91, 33, 182) and its HSL value is hsl(263, 69%, 42%).
- What Tailwind utility classes use Violet 800?
- Use bg-violet-800 for backgrounds, text-violet-800 for text color, border-violet-800 for borders, and ring-violet-800 for focus rings. In Tailwind v4 the CSS variable var(--color-violet-800) is available natively.
- Is Tailwind Violet 800 WCAG accessible?
- Tailwind Violet 800 achieves a 8.98:1 contrast ratio on white (AAA) and 2.34:1 on black (Fail). Its overall accessibility score is 60/100 (Good).
- What is the OKLCH value for Tailwind Violet 800?
- Tailwind Violet 800 in OKLCH is oklch(0.432 0.211 293) — lightness 0.432, chroma 0.211, hue 293°. OKLCH is a perceptually uniform space supported natively in modern CSS via the `color()` function.
- What is Tailwind Violet 800 used for?
- At shade 800, Tailwind Violet 800 is best described as "Deep tone for text & UI". Recommended uses: Heading text on white, Icon fills on light backgrounds, Dark sidebar fills.