Tailwind Color Finder

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

  1. Enter any color — Type or paste any CSS colour (hex, rgb(), hsl(), oklch() or a colour name), or use the colour picker.
  2. See the closest Tailwind match — The tool compares your input against Tailwind's entire color palette and finds the nearest match by color distance.
  3. View the Tailwind class — Get the exact Tailwind CSS class name (e.g., bg-rose-500) ready to use in your markup.
  4. 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.

ColourOur nearest shadeΔE OK × 100Tool showsResult
Facebook blue #1877F2blue-5003.6blue-500, 3.6match
Spotify green #1DB954emerald-5004.6emerald-500, 4.6match
Stripe purple #635BFFindigo-5000.8indigo-500, 0.8match
Netflix red #E50914red-6001.1red-600, 1.1match

Related tools

Frequently Asked Questions

How many Tailwind colors does it search?
In the Tailwind v4 palette, 26 colour families with 11 shades each (50 to 950), 286 colours, identical to tailwindcss 4.3.3’s theme.css: the 22 classic families plus the newer neutrals mauve, mist, olive and taupe. The v3 palette has the 22 classic families, 242 colours.
What if there's no exact match?
You get the closest shade first and the next eleven after it, each with its distance. If even the closest one is too far off, add your own colour to the theme (see the custom-colours question) or use an arbitrary value such as bg-[#ff6b6b].
Does it support Tailwind v4?
Yes. Pick Tailwind v4 (OKLCH) or Tailwind v3 (hex) in the Palette menu. The two palettes are close but not identical, so the nearest shade can differ; the values shown are the ones each version ships.
Does it work with custom Tailwind colors?
The tool matches against Tailwind's default palette. For custom colors defined in your tailwind.config.js, you'd need to check those values manually or extend the tool's color database.
How accurate is the color matching?
Colours are compared in OKLab, and the distance shown is ΔE OK (CSS Color 4's OKLab difference) times 100. Under about 2 the two colours are very hard to tell apart side by side. We checked the best match for 7 inputs in both palettes against the coloraide library's ΔE OK: 14 of 14 identical.
How many colors does Tailwind CSS have?+
Tailwind CSS v3 has 22 colour families (slate, gray, zinc, neutral, stone, red, orange, amber, yellow, lime, green, emerald, teal, cyan, sky, blue, indigo, violet, purple, fuchsia, pink, rose) with 11 shades each (50–950), 242 named colours. Tailwind v4.3 keeps those, now defined in OKLCH, and adds four neutrals (mauve, mist, olive, taupe) for 286, plus black and white.
Can I use custom colors in Tailwind?+
Yes, extend or override the color palette in tailwind.config.js under theme.extend.colors. You can add individual colors or full shade scales. Tailwind also supports arbitrary values with square bracket notation: bg-[#FF6B6B].
What color space does Tailwind use?+
Tailwind v3 defines its palette as sRGB hex codes; Tailwind v4 redefined it in OKLCH, so some v4 shades are slightly more saturated than sRGB can show. The finder converts your colour and every palette entry to OKLab and picks the smallest ΔE OK.
What are Tailwind CSS colors?+
Tailwind provides a curated palette of color scales — each color (slate, red, blue, etc.) has shades from 50 (lightest) to 950 (darkest). These are designed to work together harmoniously.
How do I find the closest Tailwind color?+
Type or paste a colour in any CSS form (hex, rgb(), hsl(), oklch() or a name such as rebeccapurple), or use the picker, choose v4 or v3, and the nearest shades appear at once. Click the top match to copy its bg- class.

📖 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

Privacy Policy · Terms of Service