A vivid dark red, white text passes AA
Tailwind red-900
Tailwind red-900 is oklch(39.6% 0.141 25.723) in Tailwind CSS 4.3.3, which is #82181a in hex and rgb(130 24 26). White text on it reaches 10.03:1, passing WCAG AAA. Recolor (recolor.page) shows it on a real page below.
Last updated
--color-red-900), converted with Recolor's color code, October 9, 2026| Format | Value |
|---|---|
| OKLCH, as Tailwind writes it | oklch(39.6% 0.141 25.723) |
| Hex | #82181a |
| RGB | rgb(130 24 26) |
| HSL | hsl(359 69% 30%) |
| CSS variable | var(--color-red-900) |
| Nearest CSS name | darkred #8b0000, 0.025 away in OKLab |
| White text | 10.03:1: AA passes, AAA passes, large text passes |
| Black text | 2.09:1: AA fails, AAA fails, large text fails |
About red-900
Tailwind red-900 is a vivid dark red: OKLCH lightness 39.6%, chroma 0.141, hue 25.7 degrees. On Tailwind's red scale it sits between red-800 at 44.4% and red-950 at 25.8%.
Its lightness is 30% in HSL and 39.6% in OKLCH, 9 points apart; only the second tracks how light it looks. Its value fits inside sRGB, so #82181a is the same color, not an approximation.
White text on red-900 measures 10.03:1, past the 7:1 of WCAG AAA, while black text manages only 2.09:1. On the red scale white text works from red-600 to red-950; red-900 has 3 shades of margin.
The closest CSS named color is darkred (#8b0000), 0.025 away in OKLab: near, and still a visible step from it side by side.
Tints and shades
- #edd8d6
- #dab2ae
- #c68d87
- #b16962
- #9a433e
- #82181a
- #651012
- #49090a
- #2f0404
- #160101
- #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
- #82181a
- #ffe4e2
- #c57668
- #3d1918
- #ffaaa7
Recolor's generator, with red-900 locked as swatch 1 and the seed taken from its hex, drew a monochromatic palette, one hue in five lightnesses: #ffe4e2, #c57668, #3d1918, #ffaaa7. Open it in Recolor.
Using red-900
Pair it with text-white, 10.03:1; red-900 as text on a white page measures the same ratio. In CSS it is var(--color-red-900).
<a class="bg-red-900 text-white" href="/start">Get started</a>
<p class="text-red-900">Text in red-900</p>Common questions
Does white text pass WCAG AA on Tailwind red-900?
Yes. White text measures 10.03:1 on red-900, above the 4.5:1 that WCAG AA asks of body text, and above AAA's 7:1 too.
Is Tailwind red-900 defined in OKLCH?
Yes. Tailwind CSS 4.3.3 defines it as --color-red-900: oklch(39.6% 0.141 25.723); #82181a is its conversion to sRGB.
Is there a CSS named color for Tailwind red-900?
No. The nearest CSS named color is darkred (#8b0000), 0.025 away in OKLab.
Sources
- Tailwind CSS: Colors tailwindcss.com
- WCAG 2.2: Contrast (Minimum) w3.org