Nearest Tailwind Color
Find the Tailwind CSS default palette color closest to any color you enter. The tool compares each color with all 286 shades of the 26 default palettes plus black and white using the CIEDE2000 color difference, which follows how people see color, and lists the nearest class name with its value and two runners-up.
Frequently asked questions
Which Tailwind version is used?
The default palette of Tailwind CSS 4.3, whose colors are defined in OKLCH. It includes the palettes from red to rose, the neutral palettes slate, gray, zinc, neutral and stone, and the newer mauve, olive, mist and taupe.
What does the distance mean?
It is the CIEDE2000 color difference between your color and the Tailwind color. Below 1 the colors are practically identical, around 2 to 3 the difference is visible on close inspection, and above 10 they are clearly different colors.
Why is my old Tailwind color not an exact match?
Tailwind v4 redefined the default palette in OKLCH, so the v3 hex values, such as #3b82f6 for blue-500, now map to slightly different colors. The nearest match is usually the same name with a small distance.
Which color formats are accepted?
Any CSS color, including hex, rgb(), hsl(), oklch() and named colors. Enter one color per line, up to 50 at a time.
Why are the hex values sometimes approximate?
Some Tailwind v4 colors lie outside the sRGB range. The hex value is mapped into sRGB, while the OKLCH value shows the color as Tailwind defines it.
How do I use the result?
Prefix the name with a utility, such as bg-, text- or border-, for example bg-blue-500. If no match is close enough, add your own color to the theme instead.