Toolman

Tailwind emerald colours

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

Every emerald shade

ClassHexRGBOn whiteText colourAs text
emerald-50#ECFDF5236, 253, 2451.05:1black
emerald-100#D1FAE5209, 250, 2291.13:1black
emerald-200#A7F3D0167, 243, 2081.28:1black
emerald-300#6EE7B7110, 231, 1831.52:1black
emerald-400#34D39952, 211, 1531.92:1black
emerald-500#10B98116, 185, 1292.54:1black
emerald-600#0596695, 150, 1053.77:1blacklarge only
emerald-700#0478574, 120, 875.48:1whiteAA
emerald-800#065F466, 95, 707.68:1whiteAA
emerald-900#064E3B6, 78, 599.72:1whiteAA
emerald-950#022C222, 44, 3415.15: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

emerald-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 emerald in Tailwind

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

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

Frequently asked questions

What is the hex code for Tailwind emerald-500?

#10B981 — RGB 16, 185, 129. Full values and contrast for #10B981.

Which Tailwind emerald shades can I use for text?

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

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

All Tailwind colours · Colour reference