Skip to main contentSkip to navigationSkip to searchSkip to footer

Tailwind Color Palette — All Colors with Hex Codes (2026)

Browse the complete Tailwind CSS color palette — copy hex, RGB, HSL, or class names instantly. Find the nearest Tailwind color from any hex value. Free.

NextUtils Team
7 min read
🛠️Tools Guide
tailwind-csscolor-palettedesigncssweb-development
CSS design tools and front-end development experts

Quick Answer

  1. Select a copy format — HEX, RGB, HSL, or Tailwind class (bg-, text-, border-).
  2. Click any color swatch to copy the value for that shade to your clipboard.
  3. Use the search bar to filter by color name (e.g. “indigo”), shade number (e.g. “500”), or hex code.
  4. 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.

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.

FamilyMid shade (500)Undertone / characterCommon use
slate#64748bCool blue-grayUI frames, sidebars, dark mode base
gray#6b7280Warm neutralBody text, borders, general UI
zinc#71717aNeutral, slightly warmCards, backgrounds, muted elements
neutral#737373Pure neutralMinimal, no-bias designs
stone#78716cWarm sandy-brownEditorial, earthy, organic
red#ef4444Vivid redErrors, alerts, delete actions
orange#f97316Vivid orangeWarnings, accent, food/product
amber#f59e0bGolden amberWarnings, highlights, ratings
yellow#eab308Bright yellowBadges, highlights, caution
lime#84cc16Yellow-greenSuccess tags, growth, health
green#22c55eMid greenSuccess states, nature, finance
emerald#10b981Cool greenSuccess, sustainability, fintech
teal#14b8a6Blue-greenHealthcare, calm, aqua accents
cyan#06b6d4Bright cyanTech, ocean, data viz
sky#0ea5e9Light sky blueSaaS, open/clear aesthetics
blue#3b82f6Classic blueLinks, primary buttons, trust
indigo#6366f1Blue-violetPrimary brand, CTA buttons
violet#8b5cf6Vivid violetCreative tools, gradients
purple#a855f7Rich purplePremium, creative, playful
fuchsia#d946efHot fuchsiaBold accents, fashion, events
pink#ec4899Vivid pinkFeminine brands, love, lifestyle
rose#f43f5eRed-pinkRomantic, 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.

ShadeLightnessTypical use
50Near white (~97%)Subtle backgrounds, hover states on white
100Very light (~94%)Backgrounds, selected row highlights
200Light (~88%)Borders, dividers, input backgrounds
300Light-medium (~75%)Disabled text, placeholder text
400Medium (~60%)Icons, muted text, secondary labels
500Mid (pure hue, ~45%)Badges, tags, mid-emphasis elements
600Medium-dark (~35%)Primary buttons, links, interactive elements
700Dark (~28%)Hover state for buttons, headings
800Very dark (~20%)Dark mode surfaces, body text
900Near black (~12%)Dark mode backgrounds, headings
950Ultra 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:

FormatExample (indigo-500)Use when
HEX#6366f1Design files (Figma, Sketch), CSS custom properties, config files
RGBrgb(99, 102, 241)CSS with alpha channels, canvas/SVG drawing, JavaScript
HSLhsl(239, 84%, 67%)CSS animations, dynamic lightness adjustments, theming
Class (bg-)bg-indigo-500Tailwind utility class for background colors in HTML
Class (text-)text-indigo-500Tailwind utility class for text/foreground colors
Class (border-)border-indigo-500Tailwind 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.blue family rather than adding a completely new family.

Common Color Pairings for UI Design

UI roleLight modeDark mode
Page backgroundwhite / gray-50gray-900 / slate-900
Card backgroundwhitegray-800 / slate-800
Primary buttonindigo-600indigo-500
Primary button hoverindigo-700indigo-400
Body textgray-900gray-100
Secondary textgray-600gray-400
Bordersgray-200gray-700
Input backgroundwhitegray-800
Successgreen-600green-400
Warningamber-500amber-400
Errorred-600red-400
Linkindigo-600indigo-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 →

Try These Free Tools

Share this article

Related Articles

Continue exploring with these related posts

Ready to try our tools?

Explore our collection of free online tools for developers, designers, and power users.

Explore All Tools

Explore More Tools

Discover our collection of free online tools for developers, designers, and power users