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
Input Samplebrand.hex
#2563EB
Expected OutputOKLCH
blue-600 (#155DFC, oklch(54.6% 0.245 262.881)) · dE2000: 2.38

HEX vs OKLCH

Source vs. target format specification comparison
PropertySource: HEXTarget: OKLCH
Gamut scopesRGB (Standard Web)Wide Gamut (P3 / Unbounded)
Perceptual uniformityNoYes
Alpha channel supportYesYes
Human readabilityMediumHigh
Extension / Token.css / .txt.css / .json
Best forCompact copy-paste handoff in sRGB brand guidelines and legacy CSSPerceptually 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.

  1. Enter or pick a colorType Hex, RGB, HSL, OKLCH, or Lab — or click Screen Eyedropper and live sliders.
  2. Inspect math & gamutReview exact CSS Color 4 readouts, sRGB vs Display P3 status, and profile options.
  3. 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.