Eleven shades, from violet-50 to violet-950
Tailwind violet colors
Tailwind CSS 4.3.3 defines eleven violet shades in OKLCH, from violet-50 (#f5f3ff) to violet-950 (#2f0d68). On them white text passes WCAG AA from violet-600 to violet-950, and black text from violet-50 to violet-500. Recolor (recolor.page) shows the scale on a real page.
Last updated
- 50#f5f3ff
- 100#ede9fe
- 200#ddd6ff
- 300#c4b4ff
- 400#a684ff
- 500#8e51ff
- 600#7f22fe
- 700#7008e7
- 800#5d0ec0
- 900#4d179a
- 950#2f0d68
| Shade | OKLCH | Hex | White text | Black text |
|---|---|---|---|---|
| violet-50 | oklch(96.9% 0.016 293.756) | #f5f3ff | 1.10:1 fails | 19.15:1 passes |
| violet-100 | oklch(94.3% 0.029 294.588) | #ede9fe | 1.19:1 fails | 17.69:1 passes |
| violet-200 | oklch(89.4% 0.057 293.283) | #ddd6ff | 1.39:1 fails | 15.14:1 passes |
| violet-300 | oklch(81.1% 0.111 293.571) | #c4b4ff | 1.86:1 fails | 11.32:1 passes |
| violet-400 | oklch(70.2% 0.183 293.541) | #a684ff | 2.85:1 fails | 7.37:1 passes |
| violet-500 | oklch(60.6% 0.25 292.717) | #8e51ff | 4.40:1 fails | 4.77:1 passes |
| violet-600 | oklch(54.1% 0.281 293.009) | #7f22fe | 5.89:1 passes | 3.56:1 fails |
| violet-700 | oklch(49.1% 0.27 292.581) | #7008e7 | 7.30:1 passes | 2.88:1 fails |
| violet-800 | oklch(43.2% 0.232 292.759) | #5d0ec0 | 9.17:1 passes | 2.29:1 fails |
| violet-900 | oklch(38% 0.189 293.745) | #4d179a | 11.03:1 passes | 1.90:1 fails |
| violet-950 | oklch(28.3% 0.141 291.089) | #2f0d68 | 15.24:1 passes | 1.38:1 fails |
Text on violet, and violet as text
As a text color the rule turns around: violet text on a white page passes AA from violet-600 on, and on a black page up to violet-500, since a contrast ratio is the same whichever color is in front.
Chroma peaks at violet-600 (0.281) and falls toward both ends, while the hue drifts 3.5 degrees across the scale.
4 of the eleven lie outside sRGB, so their hex codes are the nearest sRGB colors, and a wide-gamut screen shows them stronger.
Sources
- Tailwind CSS: Colors tailwindcss.com
- WCAG 2.2: Contrast (Minimum) w3.org