Toolman

Tailwind orange colours

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

Every orange shade

ClassHexRGBOn whiteText colourAs text
orange-50#FFF7ED255, 247, 2371.06:1black
orange-100#FFEDD5255, 237, 2131.15:1black
orange-200#FED7AA254, 215, 1701.35:1black
orange-300#FDBA74253, 186, 1161.69:1black
orange-400#FB923C251, 146, 602.26:1black
orange-500#F97316249, 115, 222.8:1black
orange-600#EA580C234, 88, 123.56:1blacklarge only
orange-700#C2410C194, 65, 125.18:1whiteAA
orange-800#9A3412154, 52, 187.31:1whiteAA
orange-900#7C2D12124, 45, 189.37:1whiteAA
orange-950#43140767, 20, 715.65: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

orange-700 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 orange in Tailwind

<div class="bg-orange-500 text-black">
<p class="text-orange-700">

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

Frequently asked questions

What is the hex code for Tailwind orange-500?

#F97316 — RGB 249, 115, 22. Full values and contrast for #F97316.

Which Tailwind orange shades can I use for text?

orange-700, orange-800, orange-900, orange-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 orange background be black or white?

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

All Tailwind colours · Colour reference