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

#82181ared-900
From the theme file of Tailwind CSS 4.3.3 (--color-red-900), converted with Recolor's color code, October 9, 2026
FormatValue
OKLCH, as Tailwind writes itoklch(39.6% 0.141 25.723)
Hex#82181a
RGBrgb(130 24 26)
HSLhsl(359 69% 30%)
CSS variablevar(--color-red-900)
Nearest CSS namedarkred #8b0000, 0.025 away in OKLab
White text10.03:1: AA passes, AAA passes, large text passes
Black text2.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

  1. #edd8d6
  2. #dab2ae
  3. #c68d87
  4. #b16962
  5. #9a433e
  6. #82181a
  7. #651012
  8. #49090a
  9. #2f0404
  10. #160101
  11. #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

  1. #82181a
  2. #ffe4e2
  3. #c57668
  4. #3d1918
  5. #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).

HTML
<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