A dark brown, white text passes AA

Tailwind amber-800

In Tailwind CSS 4.3.3, amber-800 is defined as oklch(47.3% 0.137 46.201); as the nearest sRGB hex that is #973c00, or rgb(151 60 0). White text on it reaches 7.09:1, passing WCAG AAA, and Recolor (recolor.page) can show it on a real page.

Last updated

#973c00amber-800
From the theme file of Tailwind CSS 4.3.3 (--color-amber-800), converted with Recolor's color code, October 9, 2026
FormatValue
OKLCH, as Tailwind writes itoklch(47.3% 0.137 46.201)
Hex#973c00, the nearest color in sRGB
RGBrgb(151 60 0)
HSLhsl(24 100% 30%)
OKLCH of the hexoklch(47.5% 0.136 45.0)
CSS variablevar(--color-amber-800)
Nearest CSS namesaddlebrown #8b4513, 0.027 away in OKLab
White text7.09:1: AA passes, AAA passes, large text passes
Black text2.96:1: AA fails, AAA fails, large text fails

About amber-800

In OKLCH, amber-800 has a lightness of 47.3%, a chroma of 0.137 and a hue of 46.2 degrees, which makes it a dark brown. The step up to amber-700 is 8.2 points of lightness, and the step down to amber-900 5.9 points.

HSL puts its lightness at 30% and OKLCH at 47.3%, 18 points apart: HSL's lightness does not follow what the eye sees, OKLCH's is built to. Amber-800 is one of the 95 colors in Tailwind CSS 4.3.3 that sRGB cannot hold. Its hex, #973c00, gives up 0.001 of chroma and moves 0.2 points of lightness and 1.2 degrees of hue; a Display P3 screen shows the full value.

For text, amber-800 wants white: 7.09:1 clears even AAA's 7:1, and black at 2.96:1 fails AA. White text passes on every amber shade from amber-700 down, so amber-800 is 1 shade past the line.

Among the CSS keywords, saddlebrown (#8b4513) comes closest at 0.027 in OKLab, close enough to stand in for it in a sketch.

Tints and shades

  1. #f0ded6
  2. #e0bdae
  3. #cf9d87
  4. #bd7d60
  5. #ab5d39
  6. #973c00
  7. #752d00
  8. #551f00
  9. #371100
  10. #1c0600
  11. #050100

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. #973c00
  2. #71dbb5
  3. #1c1928
  4. #ae8470
  5. #c7f2da

Locked as the first of five swatches, amber-800 gets #71dbb5, #1c1928, #ae8470, #c7f2da from Recolor's generator, a triadic palette, three hues a third of the wheel apart. The seed is its hex, so the palette stays the same. Open it in Recolor.

Using amber-800

Pair it with text-white, 7.09:1; amber-800 as text on a white page measures the same ratio. In CSS it is var(--color-amber-800).

HTML
<a class="bg-amber-800 text-white" href="/start">Get started</a>
<p class="text-amber-800">Text in amber-800</p>

Common questions

Does white text pass WCAG AA on Tailwind amber-800?

Yes. White text measures 7.09:1 on amber-800, above the 4.5:1 that WCAG AA asks of body text, and above AAA's 7:1 too.

Is Tailwind amber-800 defined in OKLCH?

Yes. Tailwind CSS 4.3.3 defines it as --color-amber-800: oklch(47.3% 0.137 46.201); #973c00 is its nearest sRGB color, since the value lies outside sRGB.

Is there a CSS named color for Tailwind amber-800?

No. The nearest CSS named color is saddlebrown (#8b4513), 0.027 away in OKLab.

Sources