What Is the Tailwind Color Finder?
Find the closest Tailwind CSS color class for any hex, RGB, or HSL color. See the exact match and nearby alternatives.
Why Use This Tool?
Translating design specs to Tailwind color classes is a constant task for developers working with Figma files. This tool instantly maps any color to the closest Tailwind class name.
How to Use This Tailwind Color Finder
- Enter any color — Type or paste any CSS colour (hex, rgb(), hsl(), oklch() or a colour name), or use the colour picker.
- See the closest Tailwind match — The tool compares your input against Tailwind's entire color palette and finds the nearest match by color distance.
- View the Tailwind class — Get the exact Tailwind CSS class name (e.g.,
bg-rose-500) ready to use in your markup. - Compare the colors — See your colour and the matches side by side, each with its ΔE OK distance.
Worked example: checked against Tailwind's own theme file
On October 12, 2026 we installed tailwindcss 4.3.3 from npm, read the colour variables in its theme.css, and compared them with the tool's v4 palette. We then computed the nearest shade for four brand colours ourselves (sRGB → OKLab, straight-line distance × 100) and typed the same colours into the tool.
| Colour | Our nearest shade | ΔE OK × 100 | Tool shows | Result |
|---|---|---|---|---|
Facebook blue #1877F2 | blue-500 | 3.6 | blue-500, 3.6 | match |
Spotify green #1DB954 | emerald-500 | 4.6 | emerald-500, 4.6 | match |
Stripe purple #635BFF | indigo-500 | 0.8 | indigo-500, 0.8 | match |
Netflix red #E50914 | red-600 | 1.1 | red-600, 1.1 | match |
- The 22 classic families are exact. All 242 shades of slate through rose match theme.css value for value, and the nearest-shade results agree with our independent calculation.
- The four newer neutrals are included. Since October 12, 2026 the v4 palette also has mauve, mist, olive and taupe (44 shades), generated by script from tailwindcss 4.3.3’s theme.css rather than copied by hand: the tool’s 286 v4 shades now differ from theme.css in 0 places, and searching each family’s 500 shade returns that shade.
- Reading the distance. Under about 2 the two colours look the same side by side; Facebook blue at 3.6 is close but visibly different, so a custom theme colour may be the better choice for brand-critical elements.
Sources
Checked on .
Related tools
- Once you have the closest Tailwind match, pipe the hex through the Color Space Converter to see its modern CSS Color Level 4 forms.
- Once you have the closest stock match, the Tailwind v4 OKLCH Palette can generate a custom v4-compatible 50-950 scale built around your exact brand color.
Frequently Asked Questions
📖 Learn More
Related Article The Complete Guide to Tailwind CSS Colors → Related Article How to Find Tailwind CSS Colors →Built by Derek Giordano · Part of Ultimate Design Tools