A vivid medium indigo, black text passes AA
Tailwind indigo-400
Tailwind indigo-400 is oklch(67.3% 0.182 276.935) in Tailwind CSS 4.3.3, which is #7c86ff as the nearest sRGB hex and rgb(124 134 255). Black text on it reaches 6.71:1, passing WCAG AA. Recolor (recolor.page) shows it on a real page below.
Last updated
--color-indigo-400), converted with Recolor's color code, October 9, 2026| Format | Value |
|---|---|
| OKLCH, as Tailwind writes it | oklch(67.3% 0.182 276.935) |
| Hex | #7c86ff, the nearest color in sRGB |
| RGB | rgb(124 134 255) |
| HSL | hsl(235 100% 74%) |
| OKLCH of the hex | oklch(67.0% 0.177 276.9) |
| CSS variable | var(--color-indigo-400) |
| Nearest CSS name | cornflowerblue #6495ed, 0.056 away in OKLab |
| White text | 3.13:1: AA fails, AAA fails, large text passes |
| Black text | 6.71:1: AA passes, AAA fails, large text passes |
About indigo-400
Tailwind indigo-400 is a vivid medium indigo: OKLCH lightness 67.3%, chroma 0.182, hue 276.9 degrees. On Tailwind's indigo scale it sits between indigo-300 at 78.5% and indigo-500 at 58.5%.
Its lightness is 74% in HSL and 67.3% in OKLCH, 7 points apart; only the second tracks how light it looks. Its value lies outside sRGB, the colors a hex code can name: #7c86ff is what CSS Color 4's gamut mapping makes of it, chroma 0.177 instead of 0.182, moving 0.3 points of lightness and 0.0 degrees of hue. A wide-gamut screen shows the stronger original.
Black text on indigo-400 reaches 6.71:1, enough for WCAG AA body text but short of AAA's 7:1; white text gets 3.13:1. On the indigo scale black text works down to indigo-500, which leaves indigo-400 1 shade of margin.
No CSS keyword matches it; cornflowerblue (#6495ed) is the nearest, 0.056 away in OKLab, a clear step off.
Tints and shades
- #e7ecff
- #d0d8ff
- #bac4ff
- #a4b0ff
- #8f9bff
- #7c86ff
- #6068c8
- #454b94
- #2c3063
- #151736
- #03040f
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
- #7c86ff
- #e6e8ff
- #4d4f63
- #b3b6ce
- #212533
Recolor's generator, with indigo-400 locked as swatch 1 and the seed taken from its hex, drew a monochromatic palette, one hue in five lightnesses: #e6e8ff, #4d4f63, #b3b6ce, #212533. Open it in Recolor.
Using indigo-400
Pair it with text-black, 6.71:1; indigo-400 as text on a black page measures the same ratio. In CSS it is var(--color-indigo-400).
<a class="bg-indigo-400 text-black" href="/start">Get started</a>
<p class="text-indigo-400">Text in indigo-400</p>Common questions
Does white text pass WCAG AA on Tailwind indigo-400?
No. White text measures 3.13:1 on indigo-400, under AA's 4.5:1; black text measures 6.71:1 and passes. The lightest indigo shade for white text is indigo-500.
Is Tailwind indigo-400 defined in OKLCH?
Yes. Tailwind CSS 4.3.3 defines it as --color-indigo-400: oklch(67.3% 0.182 276.935); #7c86ff is its nearest sRGB color, since the value lies outside sRGB.
Is there a CSS named color for Tailwind indigo-400?
No. The nearest CSS named color is cornflowerblue (#6495ed), 0.056 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