Match Hex to Nearest Tailwind Shade
Find the nearest official Tailwind palette token (e.g. blue-600 or slate-900) for any Hex using perceptual CIEDE2000 distance.
242 v4 Tokens
- 100% browser-local
- Zero server transfers
- CSS Color 4 precision
or drop a color string, CSS/JSON snippet, or file here · Ctrl V to paste · Paste Hex, RGB, HSL, OKLCH or use Screen Eyedropper
Instant Before & After Specimen
242 Tailwind v4 Tokens Ranked by dE2000#2563EBblue-600 (#155DFC, oklch(54.6% 0.245 262.881)) · dE2000: 2.38| Property | Source: HEX | Target: OKLCH |
|---|---|---|
| Gamut scope | sRGB (Standard Web) | Wide Gamut (P3 / Unbounded) |
| Perceptual uniformity | No | Yes |
| Alpha channel support | Yes | Yes |
| Human readability | Medium | High |
| Extension / Token | .css / .txt | .css / .json |
| Best for | Compact copy-paste handoff in sRGB brand guidelines and legacy CSS | Perceptually uniform UI palettes, Tailwind v4 design tokens, and wide-gamut CSS |
How to use Hex to Nearest Tailwind
Hex to Nearest Tailwind — cleanly inside your local browser with zero server transfers.
- Enter or pick a colorType Hex, RGB, HSL, OKLCH, or Lab — or click Screen Eyedropper and live sliders.
- Inspect math & gamutReview exact CSS Color 4 readouts, sRGB vs Display P3 status, and profile options.
- Copy, chain, or exportCopy ready CSS/JSON snippets, download binary swatch files, or pipe directly to related Colr tools.
Frequently asked questions
Does it rank matches perceptually rather than raw RGB distance?
Yes — CIEDE2000 captures human hue and lightness sensitivity far better than Euclidean RGB.
Does it generate ready-to-paste bg-, text-, and CSS var snippets?
Yes — click to copy class names, @theme variables, or nearest scale neighbors.