Tailwind CSS Colors Complete Color Palette Reference

The complete Tailwind CSS color palette with visual swatches and hex values for all 22 color families and 242 total shades. Use this reference to find the perfect colors for your Tailwind CSS projects from backgrounds and text to borders and gradients.

Quick Answer

Tailwind CSS color syntax: Use bg-blue-500 for background, text-gray-700 for text, border-red-300 for borders. Shades range from 50 (lightest) to 950 (darkest). Add opacity with slash syntax: bg-blue-500/50 for 50% opacity. Updated for Tailwind CSS v4.1.14.

Color Usage Syntax

UtilitySyntaxExample
Backgroundbg-{color}-{shade}bg-blue-500
Texttext-{color}-{shade}text-gray-700
Borderborder-{color}-{shade}border-red-300
Ringring-{color}-{shade}ring-cyan-400
With Opacitybg-{color}-{shade}/{opacity}bg-blue-500/50
Gradient Fromfrom-{color}-{shade}from-purple-500
Gradient Toto-{color}-{shade}to-pink-500

Frequently Asked Questions

Tailwind CSS v4 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, and rose. Each family has 11 shades (50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950) totaling 242 color values.
In Tailwind CSS v4, add custom colors using the @theme directive in your CSS: @theme { --color-brand: #06b6d4; --color-brand-light: #22d3ee; }. These become available as bg-brand, text-brand-light, border-brand, etc. No separate config file is needed.
Tailwind CSS offers five gray-toned families with different undertones: slate (blue-gray undertone), gray (neutral-cool), zinc (true neutral), neutral (warm neutral), and stone (warm brown undertone). Choose based on your design aesthetic slate for modern tech, stone for warm/organic designs.
Use the slash syntax for opacity: bg-blue-500/50 applies blue background at 50% opacity. This works with text colors (text-white/80), borders (border-gray-200/30), and any color utility. Values range from 0 to 100 in steps of 5.
Each Tailwind CSS color shade maps to a specific hex value. For example, blue-50 is #eff6ff (lightest), blue-500 is #3b82f6 (default/medium), and blue-950 is #172554 (darkest). The 500 shade is typically the primary/default shade used for buttons and accents.

See the Tailwind CSS Cheat Sheet for all utility classes, or explore Tailwind CSS Components to see colors in action.