A dark brown, white text passes AA
Tailwind orange-900
In Tailwind CSS 4.3.3, orange-900 is defined as oklch(40.8% 0.123 38.172); in hex that is #7e2a0c, or rgb(126 42 12). White text on it reaches 9.44:1, passing WCAG AAA, and Recolor (recolor.page) can show it on a real page.
Last updated
--color-orange-900), converted with Recolor's color code, October 9, 2026| Format | Value |
|---|---|
| OKLCH, as Tailwind writes it | oklch(40.8% 0.123 38.172) |
| Hex | #7e2a0c |
| RGB | rgb(126 42 12) |
| HSL | hsl(16 83% 27%) |
| CSS variable | var(--color-orange-900) |
| Nearest CSS name | darkred #8b0000, 0.047 away in OKLab |
| White text | 9.44:1: AA passes, AAA passes, large text passes |
| Black text | 2.22:1: AA fails, AAA fails, large text fails |
About orange-900
In OKLCH, orange-900 has a lightness of 40.8%, a chroma of 0.123 and a hue of 38.2 degrees, which makes it a dark brown. The step up to orange-800 is 6.2 points of lightness, and the step down to orange-950 14.2 points.
HSL calls its lightness 27%, OKLCH 40.8%: 14 points between a formula and a measure of what the eye sees. The value lies inside sRGB, the gamut of a hex code, so orange-900 converts to #7e2a0c without losing chroma.
For text, orange-900 wants white: 9.44:1 clears even AAA's 7:1, and black at 2.22:1 fails AA. White text passes on every orange shade from orange-700 down, so orange-900 is 2 shades past the line.
Among the CSS keywords, darkred (#8b0000) comes closest at 0.047 in OKLab, close enough to stand in for it in a sketch.
Tints and shades
- #ebdad5
- #d7b6ac
- #c29384
- #ac705e
- #964e38
- #7e2a0c
- #611f07
- #461404
- #2d0a02
- #150300
- #030000
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
- #7e2a0c
- #ddc897
- #231f2c
- #ffddc8
- #5796c6
Locked as the first of five swatches, orange-900 gets #ddc897, #231f2c, #ffddc8, #5796c6 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 orange-900
Pair it with text-white, 9.44:1; orange-900 as text on a white page measures the same ratio. In CSS it is var(--color-orange-900).
<a class="bg-orange-900 text-white" href="/start">Get started</a>
<p class="text-orange-900">Text in orange-900</p>Common questions
Does white text pass WCAG AA on Tailwind orange-900?
Yes. White text measures 9.44:1 on orange-900, above the 4.5:1 that WCAG AA asks of body text, and above AAA's 7:1 too.
Is Tailwind orange-900 defined in OKLCH?
Yes. Tailwind CSS 4.3.3 defines it as --color-orange-900: oklch(40.8% 0.123 38.172); #7e2a0c is its conversion to sRGB.
Is there a CSS named color for Tailwind orange-900?
No. The nearest CSS named color is darkred (#8b0000), 0.047 away in OKLab.
Sources
- Tailwind CSS: Colors tailwindcss.com
- WCAG 2.2: Contrast (Minimum) w3.org