Quick Answer
- Select a copy format — HEX, RGB, HSL, or Tailwind class (bg-, text-, border-).
- Click any color swatch to copy the value for that shade to your clipboard.
- Use the search bar to filter by color name (e.g. “indigo”), shade number (e.g. “500”), or hex code.
- Paste any custom hex into Find Nearest Color to identify the closest Tailwind match.
Tailwind Color Palette — Free
All 22 color families, 242 shades — click to copy hex, RGB, HSL, or class names. Nearest color finder included.
Open Tailwind Colors →Tailwind CSS ships with a carefully curated color palette — 22 color families, each with 11 shades from near-white to near-black. Memorising hex codes is impractical; looking them up in the documentation means context-switching away from your editor. This interactive palette lets you browse, search, and copy any Tailwind color in whatever format your project needs — hex, RGB, HSL, or the exact class name to paste into your HTML.
Advertisement
All 22 Tailwind Color Families
The Tailwind v3 palette is grouped into neutrals, warm colors, and cool colors. Each family has 11 shades (50 through 950), giving 242 distinct swatches in total.
| Family | Mid shade (500) | Undertone / character | Common use |
|---|---|---|---|
slate | #64748b | Cool blue-gray | UI frames, sidebars, dark mode base |
gray | #6b7280 | Warm neutral | Body text, borders, general UI |
zinc | #71717a | Neutral, slightly warm | Cards, backgrounds, muted elements |
neutral | #737373 | Pure neutral | Minimal, no-bias designs |
stone | #78716c | Warm sandy-brown | Editorial, earthy, organic |
red | #ef4444 | Vivid red | Errors, alerts, delete actions |
orange | #f97316 | Vivid orange | Warnings, accent, food/product |
amber | #f59e0b | Golden amber | Warnings, highlights, ratings |
yellow | #eab308 | Bright yellow | Badges, highlights, caution |
lime | #84cc16 | Yellow-green | Success tags, growth, health |
green | #22c55e | Mid green | Success states, nature, finance |
emerald | #10b981 | Cool green | Success, sustainability, fintech |
teal | #14b8a6 | Blue-green | Healthcare, calm, aqua accents |
cyan | #06b6d4 | Bright cyan | Tech, ocean, data viz |
sky | #0ea5e9 | Light sky blue | SaaS, open/clear aesthetics |
blue | #3b82f6 | Classic blue | Links, primary buttons, trust |
indigo | #6366f1 | Blue-violet | Primary brand, CTA buttons |
violet | #8b5cf6 | Vivid violet | Creative tools, gradients |
purple | #a855f7 | Rich purple | Premium, creative, playful |
fuchsia | #d946ef | Hot fuchsia | Bold accents, fashion, events |
pink | #ec4899 | Vivid pink | Feminine brands, love, lifestyle |
rose | #f43f5e | Red-pink | Romantic, passion, alerts |
The Shade Scale: 50 to 950
Every Tailwind color family uses the same 11-step shade scale. Lower numbers are lighter; higher numbers are darker. The 950 shade was added in Tailwind v3.3 as an ultra-dark option.
| Shade | Lightness | Typical use |
|---|---|---|
| 50 | Near white (~97%) | Subtle backgrounds, hover states on white |
| 100 | Very light (~94%) | Backgrounds, selected row highlights |
| 200 | Light (~88%) | Borders, dividers, input backgrounds |
| 300 | Light-medium (~75%) | Disabled text, placeholder text |
| 400 | Medium (~60%) | Icons, muted text, secondary labels |
| 500 | Mid (pure hue, ~45%) | Badges, tags, mid-emphasis elements |
| 600 | Medium-dark (~35%) | Primary buttons, links, interactive elements |
| 700 | Dark (~28%) | Hover state for buttons, headings |
| 800 | Very dark (~20%) | Dark mode surfaces, body text |
| 900 | Near black (~12%) | Dark mode backgrounds, headings |
| 950 | Ultra dark (~6%) | Deepest dark mode value, maximum contrast |
Copy Formats: HEX, RGB, HSL, and Class Names
The tool copies colors in four formats. Choose the one that matches your workflow:
| Format | Example (indigo-500) | Use when |
|---|---|---|
| HEX | #6366f1 | Design files (Figma, Sketch), CSS custom properties, config files |
| RGB | rgb(99, 102, 241) | CSS with alpha channels, canvas/SVG drawing, JavaScript |
| HSL | hsl(239, 84%, 67%) | CSS animations, dynamic lightness adjustments, theming |
| Class (bg-) | bg-indigo-500 | Tailwind utility class for background colors in HTML |
| Class (text-) | text-indigo-500 | Tailwind utility class for text/foreground colors |
| Class (border-) | border-indigo-500 | Tailwind utility class for border colors |
Choosing Between the Neutral Grays
Tailwind offers five neutral gray families. They look similar at a glance but have distinct undertones that affect how they pair with other colors and how they read in dark mode.
- Slate — a cool blue-gray. Feels modern and technical. Pairs naturally with blue and indigo primary colors. Most popular choice for dark mode UI backgrounds.
- Gray — a slightly warm neutral. The most versatile — works with almost any primary color. Good default when you are unsure which to pick.
- Zinc — similar to gray but slightly cooler. Good alternative when gray feels too warm.
- Neutral — mathematically pure gray with no hue bias. Ideal for minimalist designs or when you want the color palette to carry the personality while the neutrals stay invisible.
- Stone — warm sandy undertone. Best for editorial, organic, or earthy brand aesthetics. Pairs well with amber, orange, and yellow primaries.
Practical tip: pick one neutral family for your project and use it consistently for all text, borders, and background variations. Mixing multiple neutral families in the same UI creates subtle inconsistencies that are hard to debug but immediately visible to trained eyes.
Using Tailwind Color Classes
Tailwind color utilities follow a consistent naming pattern:
<!-- Background --> <div class="bg-indigo-600">...</div> <!-- Text color --> <p class="text-gray-900 dark:text-gray-100">...</p> <!-- Border --> <input class="border border-gray-300 focus:border-indigo-500" /> <!-- With opacity modifier (Tailwind v3+) --> <div class="bg-indigo-500/20">...</div> <!-- 20% opacity background --> <p class="text-indigo-600/75">...</p> <!-- 75% opacity text --> <!-- Dark mode variant --> <div class="bg-white dark:bg-gray-900">...</div>
Find Nearest Color: Matching Brand Colors to Tailwind
When a design file or brand guide provides a custom hex color, the Find Nearest Color feature tells you which Tailwind shade is closest. It calculates the Euclidean distance between the input hex and every swatch in the 242-color palette in RGB space, then returns the best match.
This is useful for two scenarios:
- Staying within the default palette — if the nearest match is close enough, use the Tailwind color directly and avoid adding a custom color to your config. Custom colors increase CSS bundle size and break the design consistency of the palette.
- Choosing an extension point — if the nearest match is too different (visually), the result still tells you which color family to extend in
tailwind.config.js. For example, if your brand color is a vivid blue between blue-600 and indigo-600, extend thecolors.bluefamily rather than adding a completely new family.
Common Color Pairings for UI Design
| UI role | Light mode | Dark mode |
|---|---|---|
| Page background | white / gray-50 | gray-900 / slate-900 |
| Card background | white | gray-800 / slate-800 |
| Primary button | indigo-600 | indigo-500 |
| Primary button hover | indigo-700 | indigo-400 |
| Body text | gray-900 | gray-100 |
| Secondary text | gray-600 | gray-400 |
| Borders | gray-200 | gray-700 |
| Input background | white | gray-800 |
| Success | green-600 | green-400 |
| Warning | amber-500 | amber-400 |
| Error | red-600 | red-400 |
| Link | indigo-600 | indigo-400 |
Tailwind Color Palette — Free
All 22 color families, 242 shades — click to copy hex, RGB, HSL, or class names. Nearest color finder included.
Open Tailwind Colors →