Enter any HEX color and instantly find the nearest Tailwind CSS class. Click any color in the palette to see its class.
The algorithm compares your color with all ~220 colors in the Tailwind CSS v3 palette and finds the nearest one by Euclidean distance in RGB space. The result is the exact class name.
When you receive a color from a designer in HEX and need to quickly find the corresponding Tailwind class. Or when you want to verify your color exists in the standard Tailwind palette.
The tool uses the full Tailwind CSS v3 palette — including slate, gray, zinc, neutral, stone, red, orange, amber, yellow, lime, green, emerald, teal, cyan, sky, blue, indigo, violet, purple, fuchsia, pink and rose.