What Is a Color to Tailwind Finder?
A color to Tailwind finder bridges the gap between design mockups and Tailwind CSS development. Designers specify colors as hex codes in Figma, Sketch, or Adobe XD. Developers need to translate those into Tailwind utility class names like bg-blue-600 or text-emerald-400. This tool automates that translation.
Enter a hex color (or pick one) and the tool ranks Tailwind's 220 default v3 colors by RGB distance. It shows the 12 nearest with their swatch, name, hex value and a match percentage, so you can compare them side by side.
How to Use This Tool
- Enter your color — Paste a hex code (#3b82f6 or #38f) or use the color picker. RGB and HSL strings are not parsed; convert them to hex first with the Color Converter.
- View the closest matches — The 12 nearest Tailwind colors are ranked by RGB distance, each with its swatch, name, hex value and match percentage.
- Copy the color name — Click a result to copy its name, such as blue-500, then add the prefix you need: bg-, text-, border- and so on.
- Compare side by side — The tool shows your input color next to the Tailwind match so you can visually judge whether the approximation is close enough for your design.
Worked example: how good is the "closest" match?
The finder ranks Tailwind's colors by straight-line distance between red, green and blue values (Euclidean distance in sRGB). The match percentage is 100 minus that distance as a share of the largest possible distance, black to white, which is 441.7. That's fast and simple. But equal RGB distances don't look equally different to the eye, so we checked ten design colors against a perceptual measure, CIEDE2000 (ΔE₀₀), computed with the coloraide library on October 12, 2026. Lower is closer, and 0 means identical.
| Your color | Tool's #1 match | Tool's % | ΔE₀₀ of that match | Closest by ΔE₀₀ |
|---|---|---|---|---|
| #FF6B6B | red-400 | 98% | 1.6 | red-400 (same) |
| #FFC914 | yellow-400 | 99% | 2.1 | yellow-400 (same) |
| #2A9D8F | teal-600 | 93% | 3.3 | teal-600 (same) |
| #E4572E | red-500 | 93% | 9.1 | orange-600, ΔE₀₀ 5.3 |
| #76B041 | lime-500 | 88% | 9.0 | lime-600, ΔE₀₀ 5.4 |
| #F4A261 | orange-300 | 93% | 6.7 | orange-400, ΔE₀₀ 5.2 |
| #6B4E71 | zinc-600 | 92% | 14.9 | fuchsia-900, ΔE₀₀ 14.1 |
Two lessons. First, the percentage looks generous. 92–93% sounds close, yet three of those matches are visibly different colors (ΔE₀₀ 6.7–14.9). Second, the #1 pick isn't always the perceptually closest. For 4 of our 10 test colors, a neighbour in the 12 results was nearer by eye, so scan the top few swatches rather than taking the first. When even the best swatch looks different next to your color, the palette has no real equivalent. Use an arbitrary value (bg-[#6B4E71]) or add the color to your theme.
Tailwind v3 hex vs v4 OKLCH
The finder's palette is Tailwind's v3 hex values: 220 colors, 20 families from slate to rose, shades 50–950. It doesn't include neutral or stone. Tailwind v4 redefined the same names in OKLCH. We compared all 220 against the v4.1.13 theme.css. The median difference is ΔE₀₀ 1.0, so most names are effectively the same color. The biggest shifts are orange-600 (6.1), orange-500 (5.2), yellow-400 (5.1) and amber-600 (5.0). Also, 94 of the 220 v4 values lie outside sRGB. On a wide-gamut (Display P3) screen they render more saturated than any hex code can describe. If your project is on v4 and the match is a vivid orange, yellow, green or pink, check it against the v4 value with the Tailwind v4 OKLCH palette.
Sources
Checked on .
Frequently Asked Questions
📖 Learn More
Related Article How to Find Tailwind Color → Related Article Tailwind CSS Colors Guide →Built by Derek Giordano · Part of Ultimate Design Tools