Skip to main content

bg-violet-800

Tailwind Violet 800

#5B21B6·Violet family·Shade 800

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

60/100

Good

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

On White

8.98:1

AAA

On Black

2.34:1

Fail
Test in Contrast Checker →

Tailwind Usage — All Utilities

Background

bg-violet-800

Text

text-violet-800

Border

border-violet-800

Ring

ring-violet-800

Outline

outline-violet-800

Fill

fill-violet-800

Stroke

stroke-violet-800

From (gradient)

from-violet-800

Via (gradient)

via-violet-800

To (gradient)

to-violet-800

Placeholder

placeholder-violet-800

Caret

caret-violet-800

Accent

accent-violet-800

Decoration

decoration-violet-800

Shadow Color

shadow-violet-800

Tailwind 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

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 — #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.