Tailwind Color Name to Hex

Look up the hex code of any Tailwind CSS color by name

Ad placeholder (leaderboard)

Tailwind CSS ships a carefully tuned default color palette, but remembering that blue-500 is #3b82f6 is another matter. This reference lets you search the full default palette by name and copy the exact hex or RGB value.

How it works

Tailwind organizes color into named hues, each with a ramp of shades from 50 (lightest) through 950 (darkest), with 500 as the base. The token format is hue-shade, for example emerald-400 or zinc-700. There are also the singleton colors black, white, and the fully transparent transparent.

This tool holds the stock v3 palette in a local lookup table. As you type, it filters the table by token name and renders each match with its hex code, RGB triplet, and a live swatch.

Notes

If your project defines a custom tailwind.config.js, the values there take precedence over these defaults, so a token may resolve to a different color in your build. The Tailwind palette is distinct from the named CSS colors: blue-500 is a soft, UI-friendly blue, not the pure #0000ff of CSS blue. Use the copy buttons to grab either the hex or, by reading the row, the RGB form.

Ad placeholder (rectangle)