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 — Paste a hex code, type an RGB value, or use the color picker to input the color you want to match.
- 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 input color and the Tailwind match side by side with a color distance score.
Tips and Best Practices
- → Use this when converting designs to Tailwind. When translating a Figma/Sketch design to Tailwind, map each design color to its nearest Tailwind equivalent for consistency.
- → Consider extending Tailwind's palette. If no Tailwind color is close enough, extend the palette in
tailwind.config.jsrather than using arbitrary values likebg-[#FF6B6B]. - → Tailwind's palette is designed for UI. Each color has 10 shades (50–950) with consistent contrast ratios. Using the built-in palette gives you accessible, well-balanced colors out of the box.
- → Check contrast before committing. Finding the nearest Tailwind color is step one. Always verify the chosen shade has sufficient contrast for your use case using our Contrast Checker.
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