A vivid light orange, black text passes AA
Tailwind orange-400
The hex code of Tailwind orange-400 is #ff8904 (rgb(255 137 4)), from its Tailwind CSS 4.3.3 value oklch(75% 0.183 55.934). Black text on it reaches 8.83:1, passing WCAG AAA; below, Recolor (recolor.page) puts it on a page.
Last updated
--color-orange-400), converted with Recolor's color code, October 9, 2026| Format | Value |
|---|---|
| OKLCH, as Tailwind writes it | oklch(75% 0.183 55.934) |
| Hex | #ff8904, the nearest color in sRGB |
| RGB | rgb(255 137 4) |
| HSL | hsl(32 100% 51%) |
| OKLCH of the hex | oklch(74.6% 0.180 56.7) |
| CSS variable | var(--color-orange-400) |
| Nearest CSS name | darkorange #ff8c00, 0.007 away in OKLab |
| White text | 2.38:1: AA fails, AAA fails, large text fails |
| Black text | 8.83:1: AA passes, AAA passes, large text passes |
About orange-400
Read as numbers, orange-400 is lightness 75.0%, chroma 0.183 and hue 55.9 degrees; read by eye, it is a vivid light orange. Its neighbors on the orange scale are orange-300, 8.7 points lighter, and orange-500, 4.5 points darker.
Its HSL lightness, 51%, says little about how light orange-400 looks; OKLCH, made to match the eye, measures 75.0%, 24 points away. A hex code cannot hold orange-400 exactly: the value is outside sRGB, and #ff8904 is the CSS Color 4 gamut mapping of it, chroma lowered by 0.003, 0.4 points of lightness and 0.8 degrees of hue away from the value.
Black on orange-400 reads at 8.83:1, enough for AAA body text; white reaches 2.38:1 and should stay off it. On the orange scale black text works down to orange-600, which leaves orange-400 2 shades of margin.
The CSS keyword darkorange (#ff8c00) is almost the same color: 0.007 apart in OKLab, under the step most people notice.
Tints and shades
- #ffedde
- #ffdabd
- #ffc79b
- #ffb378
- #ff9e4f
- #ff8904
- #c86a02
- #944d01
- #633101
- #361800
- #0f0400
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
- #ff8904
- #66442b
- #ffecd9
- #a97f5a
- #092132
Around orange-400 as swatch 1, Recolor's generator made a complementary palette, built on the hue opposite: #66442b, #ffecd9, #a97f5a, #092132, drawn from a seed fixed by its hex. Open it in Recolor.
Using orange-400
Pair it with text-black, 8.83:1; orange-400 as text on a black page measures the same ratio. In CSS it is var(--color-orange-400).
<a class="bg-orange-400 text-black" href="/start">Get started</a>
<p class="text-orange-400">Text in orange-400</p>Common questions
Does white text pass WCAG AA on Tailwind orange-400?
No. White text measures 2.38:1 on orange-400, under AA's 4.5:1; black text measures 8.83:1 and passes. The lightest orange shade for white text is orange-700.
Is Tailwind orange-400 defined in OKLCH?
Yes. Tailwind CSS 4.3.3 defines it as --color-orange-400: oklch(75% 0.183 55.934); #ff8904 is its nearest sRGB color, since the value lies outside sRGB.
Is there a CSS named color for Tailwind orange-400?
Yes, nearly: darkorange (#ff8c00) is 0.007 away in OKLab, too close to tell apart by eye.
Sources
- Tailwind CSS: Colors tailwindcss.com
- WCAG 2.2: Contrast (Minimum) w3.org
- CSS Color Module Level 4: gamut mapping w3.org