Tools38

Translate codes

HEX to Tailwind Color Finder.

Paste any HEX code to find the closest official Tailwind CSS v4 token with perceptual ΔE accuracy.

Export palette

Import colors

Paste CSS variables, JSON tokens, a Coolors URL, or comma-separated HEX / RGB / OKLCH values (3–8 colors).

Try:

Saved Palettes

Stored in your browser cache—no account required.

Blog How to find the closest Tailwind CSS v4 color to any HEX Read the guide

Find the closest official Tailwind CSS v4 color class for any custom HEX

Paste any brand #HEX code to find the nearest official Tailwind CSS v4 token across all 22 chromatic and neutral scales (244 tokens) ranked by perceptual CIELAB ΔE distance.

Perceptual ΔE matcher across all 244 official Tailwind CSS v4 tokens.
QUICK VIDEO TUTORIAL How to find the closest Tailwind CSS v4 color to any HEX Match arbitrary mockup HEX codes to official Tailwind tokens—or know when to add a custom scale. Watch the video

How to find the closest Tailwind CSS v4 color to any HEX

Snap arbitrary HEX codes to clean utility classes

Design Cleanup

244 canonical tokens

Searches slate, gray, zinc, neutral, stone, and all 17 chromatic Tailwind families.

Perceptual Math

CIELAB ΔE distance

Finds the true closest visual match rather than naive RGB Euclidean distance.

Reverse Lookup

Token → HEX support

Type emerald-600 or rose-500 in the omnibox to inspect its exact HEX and OKLCH values.

Key capabilities

Closest Tailwind v4 & Classic RAL

Finds nearest official Tailwind CSS tokens and Classic RAL paint standards with perceptual ΔE scores.

Split swatch proof

Each match row displays a 50/50 split swatch and exact ΔE perceptual distance for visual verification.

11-step 50–950 shade scales

Builds smooth tints and shades in OKLCH while pinning your exact input HEX at its natural lightness stop.

Anchor accuracy

Click any tile from 50 to 950 to copy its HEX, OKLCH, RGB, or HSL code immediately.

6 live bidirectional color spaces

Converts simultaneously between HEX, OKLCH, RGB, HSL, D65 CIELAB, and process CMYK.

Omnibox parsing

Type or paste in any card—or drag perceptual OKLCH sliders—to update all six spaces in real time.

Synced active palette across tools

Move freely between Generator, Visualizer, Contrast, Tailwind, and Vision without re-entering colors.

How state travels

Your active palette syncs automatically in browser storage across every module, and visiting any tool directly starts from a fresh harmonious palette.

Formats & privacy

Supported inputs
Any Brand #HEX, RGB, or OKLCH Color
Outputs & exports
Closest Official Tailwind CSS v4 Class Token & ΔE Score

Supports 3 to 8 active palette roles with unlimited local saves and exports—no account required.

All color math, simulations, and exports run locally in your browser while syncing your active palette across tools.

FAQ

Good to know.

A few answers before you get started.

On your device
When is snapping to a built-in Tailwind token safe?

When ΔE is under 2.5, the default Tailwind utility is nearly indistinguishable from the custom HEX; for signature brand colors with larger ΔE, generate a custom @theme 50–950 ramp in the Tailwind tab.

How many official Tailwind v4 colors are searched?

Every shade from 50 through 950 across all 22 official Tailwind CSS v4 color families (242 tokens plus black and white) is compared in CIELAB space.

When should I use the nearest Tailwind token vs a custom 50–950 scale?

If ΔE is under 2.5, an official token keeps your theme config minimal; if ΔE is larger, open Tailwind Color Generator to build a custom 50–950 ramp.

Does it copy the bare token name like emerald-600?

Yes, so you can drop it straight into bg-*, text-*, border-*, or ring-* utility classes.

Language38

EnglishالعربيةFrançaisItalianoDeutschEspañolPortuguêsNederlandsРусскийTürkçe日本語中文हिन्दीBahasa IndonesiaBahasa Melayu한국어Tiếng ViệtไทยPolskiSvenskaУкраїнськаNorskবাংলাΕλληνικάفارسیاردوČeštinaDanskMagyarRomânăSuomiБългарскиFilipinoქართულიSlovenčinaAzərbaycancaעבריתSlovenščina