Tailwind CSS Colors

Browse the complete Tailwind CSS color palette. All 22 color families with 11 shades each. Click any swatch to copy the Tailwind class name or hex value. Updated for Tailwind v3 and v4.

How to use Tailwind CSS Colors

  1. 1

    Browse all 22 Tailwind color families displayed as swatches.

  2. 2

    Click any color swatch to copy its Tailwind class name.

  3. 3

    Toggle between copy modes: class name (e.g., blue-500) or hex value (#3b82f6).

  4. 4

    Use the search box to find a specific color family quickly.

  5. 5

    Click "View shades" to expand a color family and see all 11 shades.

Frequently Asked Questions

How many colors does Tailwind CSS have?

Tailwind v3 includes 22 color families (slate, gray, zinc, neutral, stone, red, orange, amber, yellow, lime, green, emerald, teal, cyan, sky, blue, indigo, violet, purple, fuchsia, pink, rose), each with 11 shades from 50 to 950.

What changed in Tailwind v4 colors?

Tailwind v4 defines colors using OKLCH color space custom properties for more perceptual uniformity across screens. The class names remain the same but the underlying values are more accurate.

How do I add custom brand colors to Tailwind?

In tailwind.config.js, extend the colors in theme.extend.colors. You can add arbitrary named colors with any shades you define.

Detailed Guide

The Tailwind CSS Color System

Tailwind CSS includes one of the most thoughtfully designed color palettes in any CSS framework. Unlike Bootstrap's handful of semantic colors, Tailwind gives you a full, mathematically balanced palette of 22 color families, each with 11 carefully chosen shades.


The 22 Color Families

Tailwind organizes its colors into these families:

FamilyNotes
slateBlue-gray, popular for neutral backgrounds
grayPure neutral gray
zincGray with a hint of warm metal
neutralPerfectly neutral gray
stoneWarm gray with sandy undertones
redVibrant, strong red
orangeWarm orange
amberGolden amber yellow
yellowBright, saturated yellow
limeYellow-green
greenBalanced green
emeraldRich emerald green
tealBlue-green
cyanBright cyan
skyLight, airy blue
blueClassic blue
indigoDeep indigo-blue
violetPurple-blue
purplePure purple
fuchsiaPink-purple
pinkBright pink
roseRed-pink

The Shade Scale

Each color family has 11 shades:

ShadeUsage
50Nearly white — backgrounds, hover states
100Very light — section backgrounds
200Light — borders, dividers
300Soft — disabled states, placeholder text
400Medium-light — icons, secondary text
500Mid-tone — default brand color
600Slightly dark — hover variants
700Dark — active/pressed states
800Very dark — headings on light backgrounds
900Near black — primary text on white
950Darkest — dark mode backgrounds

How to Use Tailwind Colors

Text color: text-blue-500
Background: bg-blue-500
Border: border-blue-500
Ring (focus): ring-blue-500
Divide: divide-blue-500
Gradient: from-blue-500 to-purple-600

With opacity modifier (Tailwind v3+):

<div class="bg-blue-500/20">  <!-- 20% opacity -->
<div class="text-gray-900/80"> <!-- 80% opacity -->

Tailwind v4 Color Changes

Tailwind CSS v4 (2025) introduced a new approach — colors are defined as CSS custom properties using OKLCH color space, making them even more perceptually uniform and allowing easier custom overrides in CSS:

/* v4 style */
--color-blue-500: oklch(62.3% 0.214 259.1);

The class names remain the same, but the underlying values are mo...

Looking for a more detailed deep-dive and advanced tips?

Read Full Article on our Blog