Open HEX to Tailwind Color Finder in your browser to match any custom HEX code to the nearest official Tailwind CSS v4 color token (50–950 across 22 families) using perceptual CIELAB ΔE distance. Everything runs locally on your device with instant sync across the shared Active Palette bar.
Paste any HEX code from Figma or legacy CSS
Drop your custom #HEX code into the omnibox. The matcher compares it in perceptual CIELAB space against every official shade (50 through 950) across all 22 Tailwind CSS v4 color families.
Inspect the highlighted Tailwind row to see both the nearest token name (such as rose-700) and its exact ΔE distance.
Neutral family awareness: Tailwind includes five distinct gray families (slate, gray, zinc, neutral, stone)—ΔE matching automatically picks the one that matches your undertone!
Decide between an official token and a custom @theme scale
Use perceptual ΔE to make objective engineering decisions instead of eyeballing.
Snap grays, borders, and semantic alert colors to official tokens when close, and generate a custom 50–950 scale only for your signature brand primary.
ΔE 0.0 – 2.0 (Use Stock Token)
Virtually indistinguishable side by side—replace bg-[#...] with the clean Tailwind class.
ΔE 2.0 – 5.0 (Close Neighbor)
Great for secondary badges, hover states, and internal admin tools without custom CSS.
ΔE > 5.0 (Create @theme Scale)
Distinct signature brand hue—generate a dedicated 50–950 ramp in Tailwind Color Generator.
Copy the token slug for bg-*, text-*, and border-* classes
Click the copy button on the Tailwind row to grab the exact token name (e.g., rose-700).
<!-- Replace arbitrary bracketed hex with canonical Tailwind v4 -->
<!-- Before: <button class="bg-[#be184d] text-[#f8fafc]"> -->
<button class="bg-rose-700 hover:bg-rose-800 text-slate-50 ring-rose-600/25">
Save Changes
</button>
Common questions
Did Tailwind CSS v4 update its default color palette to OKLCH?
Yes—Tailwind v4 defines all 22 official color families natively in wide-gamut-ready OKLCH values; we match against their canonical sRGB/OKLCH coordinates.
Does this check all 5 gray scales (slate, gray, zinc, neutral, stone)?
Yes—cool blue grays match slate/gray, subtle violet grays match zinc, pure grays match neutral, and warm grays match stone.
Can I audit an entire CSS file for nearest Tailwind tokens at once?
Yes! Open CSS Color Extractor to parse an entire stylesheet and view the nearest Tailwind v4 token beside every extracted color.
Try HEX to Tailwind Color Finder
Match arbitrary mockup HEX codes to official Tailwind tokens—or know when to add a custom scale.