All tools
Design tools

Tailwind Color Finder

Enter any HEX and find the nearest Tailwind CSS color using perceptual Lab distance — get the class name, shade number, HEX value and a side-by-side color comparison.

Any HEX input Lab color distance Class name Shade number HEX comparison Tailwind v3+
Get started free Sign in

Free · No credit card · 50 credits/day

Tailwind shade scale at a glance

Shade Lightness Best used for
50 Lightest Tinted backgrounds, hover states on white
100–200 Very light Panel backgrounds, badges, subtle fills
300–400 Light Borders, dividers, placeholder text
500 Mid / brand Primary brand color — starting point for each hue
600–700 Dark Button hover states, accessible text on white (≥4.5:1)
800–950 Darkest Bold headings, high-contrast text, dark mode surfaces

Frequently asked questions

What is perceptual color distance (Lab)?

CIELAB is a color space where equal numerical distances correspond to equal perceived color differences. Delta-E < 2 is barely noticeable, Delta-E > 10 is clearly different. Lab matching is far more accurate than comparing HEX/RGB values directly, where small numeric differences can produce large perceived changes near white or saturated colors.

What are the Tailwind CSS color shades?

Tailwind uses a numeric scale: 50 (lightest), 100–400 (light/mid), 500 (brand/mid), 600–700 (dark, accessible on white), 800–950 (darkest). 500 is the starting brand color. For accessible text on white: use 600+. For text on dark backgrounds: 200–400. For backgrounds and panels: 50–100.

Can I use custom colors alongside Tailwind's palette?

Yes — extend the config: module.exports = { theme: { extend: { colors: { brand: { 500: '#db2777' } } } } }. This adds text-brand-500, bg-brand-500 etc. while keeping all Tailwind defaults. Use theme.colors instead of theme.extend.colors to replace all defaults (removes existing palette).

How do I use Tailwind colors for dark mode?

Use the dark: variant: class="bg-white dark:bg-slate-900 text-slate-900 dark:text-white". Enable darkMode: "class" (JS toggle) or "media" (follows OS) in tailwind.config.js. Common pattern: swap shades of the same hue — bg-slate-50/text-slate-900 in light, bg-slate-900/text-slate-50 in dark.

Related design tools

More color tools for your Tailwind workflow.

Color Palette Generator

Generate complementary palettes to map onto Tailwind shades.

Contrast Checker (WCAG)

Check the found Tailwind color against your background for WCAG AA.

Image Color Extractor

Extract brand colors from an image, then find their Tailwind equivalents.

Match any color to Tailwind instantly

Free account. 50 credits per day. Access to 75+ tools instantly.

Create free account →