Tailwind Color Search
Find closest Tailwind class from HEX. e.g. bg-blue-500.
About this tool
This tool finds the closest Tailwind color class from HEX in one click. Three features: 1) Enter HEX to get closest class from Tailwind palette, 2) Output as bg-blue-500, text-red-600, etc., 3) Ideal for converting design colors to Tailwind classes.
Tool interface
Closest Tailwind class
—
—
Tailwind CSS color palette — how to use it
The 50–950 scale
Tailwind’s default palette is a consistent scale from 50 (lightest) to 950 (darkest). Picking steps from the same hue keeps contrast and hierarchy predictable across UI.
Backgrounds (50–100)
bg-blue-50 and similar shades work as soft section fills or hover highlights without fighting content.
Borders (200–300)
border-gray-200 / border-slate-300 give quiet dividers that stay out of the way.
Primary actions (500–600)
bg-indigo-500 for primary buttons; pair with hover:bg-indigo-600 for a natural pressed feel.
Text (700–950)
Prefer text-slate-800-style near-blacks over pure #000 for readable, modern body copy.
Why look up HEX?
You often need the hex behind a class like emerald-500
outside Tailwind — Figma, Chart.js, Canvas, or a legacy stylesheet.
- Design handoff: Match Figma fills to the same Tailwind step.
- Chart libraries: Pass
#10b981into JS options. - Canvas:
ctx.fillStyle = '#10b981'. - Partial migration: Align one accent in non-Tailwind CSS.
Search by class name (red-500) or paste a HEX to reverse-lookup the closest palette step.
Tip
Paste a Figma hex such as #3b82f6 into the search box — you’ll get blue-500 (or the nearest match) without flipping docs tabs.
Usage
- Enter HEX color code in the input field
- Closest Tailwind class name from palette is displayed
- Copy bg-blue-500, text-red-600 etc. to use
When to use
Examples
FAQ
Tailwind color syntax?
Custom colors?
How to find Tailwind class from HEX?
What HEX is Tailwind blue-500?
Tailwind shade scale?
Match design colors to Tailwind?
Tailwind gray vs slate?
Tailwind color classes list?
bg- vs text- in Tailwind?
How to use Tailwind color search?
Is Tailwind Color Search free?
Is data sent to a server?
Supported browsers?
Offline use?
vs CLI or desktop apps?
When to use it?
Usage example?
Main features?
How is this different from similar tools?
Search keywords
Basic workflow
- Enter HEX color code in the input field
- Closest Tailwind class name from palette is displayed
- Copy bg-blue-500, text-red-600 etc. to use
Practical use cases
- Design colors to Tailwind classes, consistent color palette.
- This tool finds the closest Tailwind color class from HEX in one click. Three features: 1) Enter HEX to get closest class from Tailwind palette, 2) Output as bg-blue-500, text-red-600, etc., 3) Ideal for converting design colors to Tailwind classes.
- HEX→Tailwind class
- Full palette
Privacy & data handling
Data stays on your device; we do not store it on our servers.
Things to watch out for
- Treat Tailwind Color Search as a quick check — re-verify critical values in your editor or CI before shipping.
- If a browser extension breaks the page, retry in a private window with extensions disabled.
- Very large pastes can freeze a tab briefly — wait for the result before closing the tab.