A vivid dark purple, white text passes AA

Tailwind violet-800

The hex code of Tailwind violet-800 is #5d0ec0 (rgb(93 14 192)), from its Tailwind CSS 4.3.3 value oklch(43.2% 0.232 292.759). White text on it reaches 9.17:1, passing WCAG AAA; below, Recolor (recolor.page) puts it on a page.

Last updated

#5d0ec0violet-800
From the theme file of Tailwind CSS 4.3.3 (--color-violet-800), converted with Recolor's color code, October 9, 2026
FormatValue
OKLCH, as Tailwind writes itoklch(43.2% 0.232 292.759)
Hex#5d0ec0
RGBrgb(93 14 192)
HSLhsl(267 86% 40%)
CSS variablevar(--color-violet-800)
Nearest CSS namerebeccapurple #663399, 0.081 away in OKLab
White text9.17:1: AA passes, AAA passes, large text passes
Black text2.29:1: AA fails, AAA fails, large text fails

About violet-800

Read as numbers, violet-800 is lightness 43.2%, chroma 0.232 and hue 292.8 degrees; read by eye, it is a vivid dark purple. Its neighbors on the violet scale are violet-700, 5.9 points lighter, and violet-900, 5.2 points darker.

HSL and OKLCH agree on how light it is, 40% and 43.2%. No gamut mapping is needed here: oklch(43.2% 0.232 292.759) sits inside sRGB and #5d0ec0 matches it.

White on violet-800 reads at 9.17:1, enough for AAA body text; black reaches 2.29:1 and should stay off it. White text passes on every violet shade from violet-600 down, so violet-800 is 2 shades past the line.

The nearest CSS named color, rebeccapurple (#663399), is 0.081 away in OKLab: related, but plainly a different color.

Tints and shades

  1. #e0dcf8
  2. #c2b8ef
  3. #a695e5
  4. #8b71da
  5. #734ace
  6. #5d0ec0
  7. #470896
  8. #32046e
  9. #1f0249
  10. #0d0126
  11. #020008

From light to dark: 5 toward white and 5 toward black, mixed in OKLCH a sixth of the way at a time with the hue kept. A step that would repeat its neighbor is left out.

A palette around it

  1. #5d0ec0
  2. #a6b4ff
  3. #29233e
  4. #966eb4
  5. #ffe8ff

Around violet-800 as swatch 1, Recolor's generator made an analogous palette, hues next to each other on the wheel: #a6b4ff, #29233e, #966eb4, #ffe8ff, drawn from a seed fixed by its hex. Open it in Recolor.

Using violet-800

Pair it with text-white, 9.17:1; violet-800 as text on a white page measures the same ratio. In CSS it is var(--color-violet-800).

HTML
<a class="bg-violet-800 text-white" href="/start">Get started</a>
<p class="text-violet-800">Text in violet-800</p>

Common questions

Does white text pass WCAG AA on Tailwind violet-800?

Yes. White text measures 9.17:1 on violet-800, above the 4.5:1 that WCAG AA asks of body text, and above AAA's 7:1 too.

Is Tailwind violet-800 defined in OKLCH?

Yes. Tailwind CSS 4.3.3 defines it as --color-violet-800: oklch(43.2% 0.232 292.759); #5d0ec0 is its conversion to sRGB.

Is there a CSS named color for Tailwind violet-800?

No. The nearest CSS named color is rebeccapurple (#663399), 0.081 away in OKLab.

Sources