A vivid dark red, white text passes AA
Tailwind red-800
The hex code of Tailwind red-800 is #9f0712 (rgb(159 7 18)), from its Tailwind CSS 4.3.3 value oklch(44.4% 0.177 26.899). White text on it reaches 8.36:1, passing WCAG AAA; below, Recolor (recolor.page) puts it on a page.
Last updated
--color-red-800), converted with Recolor's color code, October 9, 2026| Format | Value |
|---|---|
| OKLCH, as Tailwind writes it | oklch(44.4% 0.177 26.899) |
| Hex | #9f0712 |
| RGB | rgb(159 7 18) |
| HSL | hsl(356 92% 33%) |
| CSS variable | var(--color-red-800) |
| Nearest CSS name | brown #a52a2a, 0.040 away in OKLab |
| White text | 8.36:1: AA passes, AAA passes, large text passes |
| Black text | 2.51:1: AA fails, AAA fails, large text fails |
About red-800
Read as numbers, red-800 is lightness 44.4%, chroma 0.177 and hue 26.9 degrees; read by eye, it is a vivid dark red. Its neighbors on the red scale are red-700, 6.1 points lighter, and red-900, 4.8 points darker.
HSL calls its lightness 33%, OKLCH 44.4%: 12 points between a formula and a measure of what the eye sees. No gamut mapping is needed here: oklch(44.4% 0.177 26.899) sits inside sRGB and #9f0712 matches it.
White on red-800 reads at 8.36:1, enough for AAA body text; black reaches 2.51:1 and should stay off it. White text passes on every red shade from red-600 down, so red-800 is 2 shades past the line.
Of the named colors, brown (#a52a2a) is the nearest, 0.040 away in OKLab; next to each other the two still differ.
Tints and shades
- #f4dad6
- #e6b5ae
- #d79087
- #c76b62
- #b4433c
- #9f0712
- #7c040b
- #5a0206
- #3b0102
- #1e0001
- #050000
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
- #9f0712
- #dd9f9f
- #2e1715
- #b77e6c
- #ffe3cf
Around red-800 as swatch 1, Recolor's generator made an analogous palette, hues next to each other on the wheel: #dd9f9f, #2e1715, #b77e6c, #ffe3cf, drawn from a seed fixed by its hex. Open it in Recolor.
Using red-800
Pair it with text-white, 8.36:1; red-800 as text on a white page measures the same ratio. In CSS it is var(--color-red-800).
<a class="bg-red-800 text-white" href="/start">Get started</a>
<p class="text-red-800">Text in red-800</p>Common questions
Does white text pass WCAG AA on Tailwind red-800?
Yes. White text measures 8.36:1 on red-800, above the 4.5:1 that WCAG AA asks of body text, and above AAA's 7:1 too.
Is Tailwind red-800 defined in OKLCH?
Yes. Tailwind CSS 4.3.3 defines it as --color-red-800: oklch(44.4% 0.177 26.899); #9f0712 is its conversion to sRGB.
Is there a CSS named color for Tailwind red-800?
No. The nearest CSS named color is brown (#a52a2a), 0.040 away in OKLab.
Sources
- Tailwind CSS: Colors tailwindcss.com
- WCAG 2.2: Contrast (Minimum) w3.org