Skip to main content

bg-purple-800

Tailwind Purple 800

#6B21A8·Purple family·Shade 800

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

60/100

Good

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

On White

8.72:1

AAA

On Black

2.41:1

Fail
Test in Contrast Checker →

Tailwind Usage — All Utilities

Background

bg-purple-800

Text

text-purple-800

Border

border-purple-800

Ring

ring-purple-800

Outline

outline-purple-800

Fill

fill-purple-800

Stroke

stroke-purple-800

From (gradient)

from-purple-800

Via (gradient)

via-purple-800

To (gradient)

to-purple-800

Placeholder

placeholder-purple-800

Caret

caret-purple-800

Accent

accent-purple-800

Decoration

decoration-purple-800

Shadow Color

shadow-purple-800

Tailwind 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

On colored or dark backgrounds — check contrast ratio first.

Preview

On White

Aa Bb Cc

On Black

Aa Bb Cc

As Background

Aa Bb Cc — #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.