A vivid medium indigo, black and white text both pass AA
Tailwind indigo-500
In Tailwind CSS 4.3.3, indigo-500 is defined as oklch(58.5% 0.233 277.117); as the nearest sRGB hex that is #615fff, or rgb(97 95 255). Black text on it reaches 4.59:1, passing WCAG AA, and Recolor (recolor.page) can show it on a real page.
Last updated
--color-indigo-500), converted with Recolor's color code, October 9, 2026| Format | Value |
|---|---|
| OKLCH, as Tailwind writes it | oklch(58.5% 0.233 277.117) |
| Hex | #615fff, the nearest color in sRGB |
| RGB | rgb(97 95 255) |
| HSL | hsl(241 100% 69%) |
| OKLCH of the hex | oklch(58.3% 0.230 277.1) |
| CSS variable | var(--color-indigo-500) |
| Nearest CSS name | mediumslateblue #7b68ee, 0.052 away in OKLab |
| White text | 4.58:1: AA passes, AAA fails, large text passes |
| Black text | 4.59:1: AA passes, AAA fails, large text passes |
About indigo-500
In OKLCH, indigo-500 has a lightness of 58.5%, a chroma of 0.233 and a hue of 277.1 degrees, which makes it a vivid medium indigo. The step up to indigo-400 is 8.8 points of lightness, and the step down to indigo-600 7.4 points.
HSL calls its lightness 69%, OKLCH 58.5%: 10 points between a formula and a measure of what the eye sees. Indigo-500 is one of the 95 colors in Tailwind CSS 4.3.3 that sRGB cannot hold. Its hex, #615fff, gives up 0.003 of chroma and moves 0.2 points of lightness and 0.0 degrees of hue; a Display P3 screen shows the full value.
Black and white text both clear 4.5:1 on indigo-500, at 4.59:1 and 4.58:1: a rare middle ground where either ink meets WCAG AA. Indigo-500 is where the indigo scale turns over: lighter shades need black text, darker ones white, and this one takes either.
The nearest CSS named color, mediumslateblue (#7b68ee), is 0.052 away in OKLab: related, but plainly a different color.
Tints and shades
- #e1e6ff
- #c4cdff
- #a8b4ff
- #8e9aff
- #767eff
- #615fff
- #4a49c8
- #353494
- #212063
- #0e0e36
- #02020f
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
- #615fff
- #162232
- #b2b8d0
- #4c4859
- #ffdefe
Locked as the first of five swatches, indigo-500 gets #162232, #b2b8d0, #4c4859, #ffdefe from Recolor's generator, an analogous palette, hues next to each other on the wheel. The seed is its hex, so the palette stays the same. Open it in Recolor.
Using indigo-500
Pair it with text-black, 4.59:1; indigo-500 as text on a black page measures the same ratio. In CSS it is var(--color-indigo-500).
<a class="bg-indigo-500 text-black" href="/start">Get started</a>
<p class="text-indigo-500">Text in indigo-500</p>Common questions
Does white text pass WCAG AA on Tailwind indigo-500?
Yes. White text measures 4.58:1 on indigo-500, above the 4.5:1 that WCAG AA asks of body text.
Is Tailwind indigo-500 defined in OKLCH?
Yes. Tailwind CSS 4.3.3 defines it as --color-indigo-500: oklch(58.5% 0.233 277.117); #615fff is its nearest sRGB color, since the value lies outside sRGB.
Is there a CSS named color for Tailwind indigo-500?
No. The nearest CSS named color is mediumslateblue (#7b68ee), 0.052 away in OKLab.
Sources
- Tailwind CSS: Colors tailwindcss.com
- WCAG 2.2: Contrast (Minimum) w3.org
- CSS Color Module Level 4: gamut mapping w3.org