Toolman

Tailwind red colours

The eleven red shades in the default Tailwind CSS palette, with the contrast figures that decide which of them you can actually put text on.

Every red shade

ClassHexRGBOn whiteText colourAs text
red-50#FEF2F2254, 242, 2421.09:1black
red-100#FEE2E2254, 226, 2261.22:1black
red-200#FECACA254, 202, 2021.45:1black
red-300#FCA5A5252, 165, 1651.9:1black
red-400#F87171248, 113, 1132.77:1black
red-500#EF4444239, 68, 683.76:1blacklarge only
red-600#DC2626220, 38, 384.83:1whiteAA
red-700#B91C1C185, 28, 286.47:1whiteAA
red-800#991B1B153, 27, 278.31:1whiteAA
red-900#7F1D1D127, 29, 2910.02:1whiteAA
red-950#450A0A69, 10, 1016.14:1whiteAA

"On white" is the contrast ratio against a white page. "As text" is whether that ratio passes WCAG AA for normal text, which needs 4.5:1; large text needs only 3:1.

Where the scale turns over

red-600 is the lightest shade that reaches 4.5:1 against white, so it is the first one usable for body text on a white page. It is also where a background of this hue stops taking black text and starts needing white — the two thresholds are 4.5:1 and 4.58:1, and on this scale they fall on the same step.

Using red in Tailwind

<div class="bg-red-500 text-black">
<p class="text-red-600">

The text class above is the lightest red that still passes AA on a white background.

Frequently asked questions

What is the hex code for Tailwind red-500?

#EF4444 — RGB 239, 68, 68. Full values and contrast for #EF4444.

Which Tailwind red shades can I use for text?

red-600, red-700, red-800, red-900, red-950 reach 4.5:1 against white and pass AA for normal text. Anything lighter fails, whatever it looks like on your monitor.

Should text on a red background be black or white?

Black up to red-500, white from red-600 down. The two are never both comfortable: at the crossover neither reaches 4.5:1.

All Tailwind colours · Colour reference