A vivid dark purple, white text passes AA
Tailwind violet-700
In Tailwind CSS 4.3.3, violet-700 is defined as oklch(49.1% 0.27 292.581); in hex that is #7008e7, or rgb(112 8 231). White text on it reaches 7.30:1, passing WCAG AAA, and Recolor (recolor.page) can show it on a real page.
Last updated
--color-violet-700), converted with Recolor's color code, October 9, 2026| Format | Value |
|---|---|
| OKLCH, as Tailwind writes it | oklch(49.1% 0.27 292.581) |
| Hex | #7008e7 |
| RGB | rgb(112 8 231) |
| HSL | hsl(268 93% 47%) |
| CSS variable | var(--color-violet-700) |
| Nearest CSS name | blueviolet #8a2be2, 0.062 away in OKLab |
| White text | 7.30:1: AA passes, AAA passes, large text passes |
| Black text | 2.88:1: AA fails, AAA fails, large text fails |
About violet-700
In OKLCH, violet-700 has a lightness of 49.1%, a chroma of 0.270 and a hue of 292.6 degrees, which makes it a vivid dark purple. The step up to violet-600 is 5.0 points of lightness, and the step down to violet-800 5.9 points.
Here HSL's lightness, 47%, lands near OKLCH's 49.1%, which is not true of every color. The value lies inside sRGB, the gamut of a hex code, so violet-700 converts to #7008e7 without losing chroma.
For text, violet-700 wants white: 7.30:1 clears even AAA's 7:1, and black at 2.88:1 fails AA. On the violet scale white text works from violet-600 to violet-950; violet-700 has 1 shade of margin.
No CSS keyword matches it; blueviolet (#8a2be2) is the nearest, 0.062 away in OKLab, a clear step off.
Tints and shades
- #e3deff
- #c9bdfd
- #af9bfa
- #9878f5
- #8350ef
- #7008e7
- #5605b5
- #3e0286
- #270159
- #120030
- #02000c
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
- #7008e7
- #eaa3c4
- #31261b
- #e1e9c8
- #7175b1
Locked as the first of five swatches, violet-700 gets #eaa3c4, #31261b, #e1e9c8, #7175b1 from Recolor's generator, a free palette, hues spread around the wheel. The seed is its hex, so the palette stays the same. Open it in Recolor.
Using violet-700
Pair it with text-white, 7.30:1; violet-700 as text on a white page measures the same ratio. In CSS it is var(--color-violet-700).
<a class="bg-violet-700 text-white" href="/start">Get started</a>
<p class="text-violet-700">Text in violet-700</p>Common questions
Does white text pass WCAG AA on Tailwind violet-700?
Yes. White text measures 7.30:1 on violet-700, above the 4.5:1 that WCAG AA asks of body text, and above AAA's 7:1 too.
Is Tailwind violet-700 defined in OKLCH?
Yes. Tailwind CSS 4.3.3 defines it as --color-violet-700: oklch(49.1% 0.27 292.581); #7008e7 is its conversion to sRGB.
Is there a CSS named color for Tailwind violet-700?
No. The nearest CSS named color is blueviolet (#8a2be2), 0.062 away in OKLab.
Sources
- Tailwind CSS: Colors tailwindcss.com
- WCAG 2.2: Contrast (Minimum) w3.org