Color Converter
HEX ↔ RGB ↔ HSL ↔ OKLCH with picker & history.
Find the closest Tailwind v4 color class for any HEX.
blue-500#3b82f6bg-blue-500text-blue-500border-blue-500blue-500exactindigo-500sky-600indigo-400blue-600sky-500blue-400violet-500Closeness is ranked by perceptual colour distance (OKLab). Anything short of an exact match is only the nearest class — it will look slightly different from your input. Custom theme colours outside the default palette are not covered.
A tool that finds the nearest Tailwind v4 color utility class for any color — useful when you have a HEX from a design file and need the matching class name.
No — without the exact-match badge, it's the closest available class, and the visual result will differ slightly from your input. The input and matched colors are shown side by side so you can judge whether the gap is acceptable.
Plain RGB distance doesn't match how humans actually perceive color differences. toco.tools ranks colors by distance in OKLab, a perceptually uniform color space, which produces more intuitive rankings.
No. This tool only covers Tailwind CSS v4's default palette — colors you've added via tailwind.config or CSS variables aren't included.
No. All matching runs locally in your browser; nothing is sent to toco.tools servers.