Color Values
- HEX
- #6B21A8
- RGB
- rgb(107, 33, 168)
- HSL
- hsl(273, 67%, 39%)
- OKLCH
- oklch(0.438 0.198 304)
- CMYK
- cmyk(36%, 80%, 0%, 34%)
- CSS Variable
- var(--color-purple-800)
- Tailwind Class
- bg-purple-800
Accessibility Score
Good
Based on WCAG 2.1 contrast ratios against white and black backgrounds.
On White
8.72:1
On Black
2.41:1
Tailwind Usage — All Utilities
Background
bg-purple-800Text
text-purple-800Border
border-purple-800Ring
ring-purple-800Outline
outline-purple-800Fill
fill-purple-800Stroke
stroke-purple-800From (gradient)
from-purple-800Via (gradient)
via-purple-800To (gradient)
to-purple-800Placeholder
placeholder-purple-800Caret
caret-purple-800Accent
accent-purple-800Decoration
decoration-purple-800Shadow Color
shadow-purple-800Tailwind v3 Config (extend custom color)
// tailwind.config.js
module.exports = {
theme: {
extend: {
colors: {
'purple-800': '#6b21a8',
},
},
},
};CSS Equivalent
/* Hex */
background-color: #6B21A8;
/* RGB */
background-color: rgb(107, 33, 168);
/* HSL */
background-color: hsl(273, 67%, 39%);
/* OKLCH (CSS Color Level 4) */
background-color: oklch(0.438 0.198 304);
/* CSS Custom Property (Tailwind v4) */
background-color: var(--color-purple-800);
/* Gradient example */
background: linear-gradient(135deg, #faf5ff 0%, #581c87 100%);OKLCH — Modern Color Space
Lightness (L)
0.438
44% perceived brightness
Chroma (C)
0.198
Color intensity / saturation
Hue (H)
304°
Angle on perceptual hue wheel
oklch(0.438 0.198 304)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 Purple 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 — #6B21A8
Similar Tailwind Colors
Perceptually close shades from other Tailwind color families.
Nearest Named Color
Tailwind Purple 800
Nearest Tailwind equivalent — #6B21A8
Frequently Asked Questions
- What is the hex code for Tailwind Purple 800?
- Tailwind Purple 800 has the hex code #6B21A8. Its RGB value is rgb(107, 33, 168) and its HSL value is hsl(273, 67%, 39%).
- What Tailwind utility classes use Purple 800?
- Use bg-purple-800 for backgrounds, text-purple-800 for text color, border-purple-800 for borders, and ring-purple-800 for focus rings. In Tailwind v4 the CSS variable var(--color-purple-800) is available natively.
- Is Tailwind Purple 800 WCAG accessible?
- Tailwind Purple 800 achieves a 8.72:1 contrast ratio on white (AAA) and 2.41:1 on black (Fail). Its overall accessibility score is 60/100 (Good).
- What is the OKLCH value for Tailwind Purple 800?
- Tailwind Purple 800 in OKLCH is oklch(0.438 0.198 304) — lightness 0.438, chroma 0.198, hue 304°. OKLCH is a perceptually uniform space supported natively in modern CSS via the `color()` function.
- What is Tailwind Purple 800 used for?
- At shade 800, Tailwind Purple 800 is best described as "Deep tone for text & UI". Recommended uses: Heading text on white, Icon fills on light backgrounds, Dark sidebar fills.