Tailwind Colors
The complete Tailwind CSS color palette — copy any shade as hex, OKLCH, RGB, HSL or class.
Browse the full Tailwind CSS colors palette — all 22 families and 242 shades from the Tailwind v4 defaults, with the exact hex and canonical OKLCH values. Pick a format, click any swatch to copy it, map the shadcn base colors, or use the hex-to-Tailwind converter.
Click a swatch to copy its value.
Slate
All Slate shades →Gray
All Gray shades →Zinc
All Zinc shades →Neutral
All Neutral shades →Stone
All Stone shades →Red
All Red shades →Orange
All Orange shades →Amber
All Amber shades →Yellow
All Yellow shades →Lime
All Lime shades →Green
All Green shades →Emerald
All Emerald shades →Teal
All Teal shades →Cyan
All Cyan shades →Sky
All Sky shades →Blue
All Blue shades →Indigo
All Indigo shades →Violet
All Violet shades →Purple
All Purple shades →Fuchsia
All Fuchsia shades →Pink
All Pink shades →Rose
All Rose shades →shadcn base colors
When you run npx shadcn init, shadcn/ui asks for a base color — the neutral your theme's grays are built from. It offers five Tailwind families: neutral, gray, zinc, stone and slate. Zinc is the default; slate is the most popular. Pick neutral for a truly hueless gray, or stone for a warmer, more editorial feel.
Neutral shadcn base color
All Neutral shades →Gray shadcn base color
All Gray shades →Zinc shadcn base color
All Zinc shades →Stone shadcn base color
All Stone shades →Slate shadcn base color
All Slate shades →Ready to turn a base color into a full theme? Use the shadcn theme generator to build accessible light & dark palettes in OKLCH, or browse ready-made shadcn themes.
Hex to Tailwind color
Paste any hex code to find the closest Tailwind color and shade — handy for matching a brand color to the nearest Tailwind class.
How to use Tailwind colors
Every Tailwind color is exposed as utility classes named {color}-{shade}. Prefix them by property: bg-blue-500 for a background, text-blue-600 for text, border-blue-200 for a border, or ring-blue-500 for a focus ring.
The shade scale runs 50 (lightest) to 950 (darkest). As a rule of thumb: 50–100 for tinted backgrounds, 200–300 for borders, 500–600 for solid fills and buttons, and 700–950 for text and dark surfaces.
Tailwind v4 colors & OKLCH
Tailwind CSS v4 defines its default palette in OKLCH instead of hex/RGB. OKLCH is a perceptually-uniform color space, so the shade steps look evenly spaced to the eye and colors can reach the wider P3 gamut on modern displays. Each value here is Tailwind's own OKLCH, e.g. --color-blue-500: oklch(62.3% 0.214 259.815).
The hex values are the sRGB fallbacks for older browsers — #3b82f6 for blue-500 — so whichever format you copy renders the same color as the Tailwind class.
Custom colors in Tailwind
To add your own custom colors in Tailwind v4, define them in CSS with the @theme directive:
@theme {
--color-brand-500: oklch(0.62 0.19 145);
--color-brand-600: oklch(0.55 0.19 145);
}
In Tailwind v3, add them under theme.extend.colors in tailwind.config.js. Either way, Tailwind generates the matching bg-, text- and border- utilities.
Tailwind colors vs shadcn colors
These are the raw Tailwind color scales. shadcn/ui sits one layer up: it maps a base color and an accent onto semantic tokens like --background, --primary and --muted. Use this palette to pick the raw colors; use the theme generator to turn them into shadcn tokens.
Frequently asked questions
How many colors are in Tailwind CSS?
Tailwind CSS ships 22 color families — slate, gray, zinc, neutral, stone, red, orange, amber, yellow, lime, green, emerald, teal, cyan, sky, blue, indigo, violet, purple, fuchsia, pink and rose — each with 11 shades from 50 to 950, for 242 colors in total.
What is the default Tailwind color palette?
The default palette is a set of 22 hand-tuned color families, each running from 50 (lightest) to 950 (darkest). In Tailwind CSS v4 every value is defined in OKLCH for a wider, more vivid gamut, with a hex fallback for older browsers.
How do I copy a Tailwind color as hex or OKLCH?
Pick the format with the toggle (class, hex, OKLCH, RGB or HSL), then click any swatch — the value is copied to your clipboard. Every shade on this page is available in all five formats.
What base color should I pick for shadcn/ui?
shadcn/ui builds its neutral tokens on one Tailwind base color: neutral, gray, zinc, stone or slate. Zinc is the default and slate is the most popular; pick neutral for a truly hueless gray, or stone for a warmer feel. See the shadcn base colors section on this page.
Are these the Tailwind v4 colors?
Yes. The OKLCH values are taken directly from Tailwind CSS v4's own theme, and the hex values are the matching sRGB fallbacks — so a color you copy here renders identically to the corresponding Tailwind utility class.
How do I add a custom color to Tailwind?
In Tailwind v4, define it in your CSS with the @theme directive, for example @theme { --color-brand-500: oklch(0.62 0.19 145); }. In v3, add it under theme.extend.colors in tailwind.config.js. Either way it generates the usual bg-, text- and border- utilities.
Related tools: Shadcn Theme Generator · CSS Gradient Generator · Background Generator