A vivid medium violet, white text passes AA
Tailwind violet-600
Tailwind violet-600 is oklch(54.1% 0.281 293.009) in Tailwind CSS 4.3.3, which is #7f22fe in hex and rgb(127 34 254). White text on it reaches 5.89:1, passing WCAG AA. Recolor (recolor.page) shows it on a real page below.
Last updated
--color-violet-600), converted with Recolor's color code, October 9, 2026| Format | Value |
|---|---|
| OKLCH, as Tailwind writes it | oklch(54.1% 0.281 293.009) |
| Hex | #7f22fe |
| RGB | rgb(127 34 254) |
| HSL | hsl(265 99% 56%) |
| CSS variable | var(--color-violet-600) |
| Nearest CSS name | blueviolet #8a2be2, 0.050 away in OKLab |
| White text | 5.89:1: AA passes, AAA fails, large text passes |
| Black text | 3.56:1: AA fails, AAA fails, large text passes |
About violet-600
Tailwind violet-600 is a vivid medium violet: OKLCH lightness 54.1%, chroma 0.281, hue 293.0 degrees. On Tailwind's violet scale it sits between violet-500 at 60.6% and violet-700 at 49.1%.
HSL and OKLCH agree on how light it is, 56% and 54.1%. Its value fits inside sRGB, so #7f22fe is the same color, not an approximation.
White text on violet-600 reaches 5.89:1, enough for WCAG AA body text but short of AAA's 7:1; black text gets 3.56:1. It is the lightest violet shade that carries white body text; violet-500 falls short at 4.40:1.
The nearest CSS named color, blueviolet (#8a2be2), is 0.050 away in OKLab: related, but plainly a different color.
Tints and shades
- #e6e1ff
- #cec2ff
- #b8a2ff
- #a381ff
- #905bff
- #7f22fe
- #6218c7
- #470f93
- #2d0763
- #160236
- #03000f
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
- #7f22fe
- #212318
- #dae0b0
- #4d4176
- #c6b8f2
Recolor's generator, with violet-600 locked as swatch 1 and the seed taken from its hex, drew a complementary palette, built on the hue opposite: #212318, #dae0b0, #4d4176, #c6b8f2. Open it in Recolor.
Using violet-600
Pair it with text-white, 5.89:1; violet-600 as text on a white page measures the same ratio. In CSS it is var(--color-violet-600).
<a class="bg-violet-600 text-white" href="/start">Get started</a>
<p class="text-violet-600">Text in violet-600</p>Common questions
Does white text pass WCAG AA on Tailwind violet-600?
Yes. White text measures 5.89:1 on violet-600, above the 4.5:1 that WCAG AA asks of body text.
Is Tailwind violet-600 defined in OKLCH?
Yes. Tailwind CSS 4.3.3 defines it as --color-violet-600: oklch(54.1% 0.281 293.009); #7f22fe is its conversion to sRGB.
Is there a CSS named color for Tailwind violet-600?
No. The nearest CSS named color is blueviolet (#8a2be2), 0.050 away in OKLab.
Sources
- Tailwind CSS: Colors tailwindcss.com
- WCAG 2.2: Contrast (Minimum) w3.org