DESIGN TOOL

Tailwind CSS Colors

Explore complete Tailwind CSS color palettes with every shade from 50 to 950. Copy HEX, RGB, HSL and OKLCH values for your designs.

Tailwind Color Generator

Generate Tailwind CSS classes and CSS variables from any color.

Tailwind Class

bg-slate-500

CSS Variable

--color-primary:#64748b;

Complete Tailwind CSS Color Palette

Tailwind Colors provides a complete collection of modern UI colors with every shade from 50 to 950. Developers and designers can quickly copy color values and use them in websites, applications and design systems.

The tool supports HEX, RGB, HSL and OKLCH formats, making it easy to create consistent color systems for your projects.

Perfect For

  • 🎨 UI Designers
  • 💻 Frontend Developers
  • 🚀 React / Next.js Developers
  • 📱 Mobile App Designers
  • 🖥️ Website Builders

Frequently Asked Questions

What are Tailwind colors?

Tailwind colors are predefined color palettes used in Tailwind CSS projects.

What shade range is available?

Each color includes shades from 50 to 950.

Can I copy colors directly?

Yes. Click any color card to copy the selected value.

Which formats are supported?

HEX, RGB, HSL and OKLCH formats are supported.

How to Choose and Use Tailwind CSS Color Shades

Tailwind CSS groups every color into a scale of eleven steps: 50, 100, 200, 300, 400, 500, 600, 700, 800, 900 and 950. Lower numbers are light tints and higher numbers are dark shades. The default palette has 22 families: slate, gray, zinc, neutral, stone, red, orange, amber, yellow, lime, green, emerald, teal, cyan, sky, blue, indigo, violet, purple, fuchsia, pink and rose. Click any swatch above to copy its value, then paste it into your stylesheet or design file.

What the shade numbers are good for

  • 50 to 100: page and section backgrounds, subtle hover fills and highlighted table rows.
  • 200 to 300: borders, dividers, input outlines and disabled states.
  • 400 to 500: the main brand or accent color, icons and charts.
  • 600 to 700: buttons, links and text on light backgrounds, plus hover states for 500-level buttons.
  • 800 to 950: headings, dark mode surfaces and high-contrast text.

Using the colors in class names

Every shade is available as a utility for backgrounds, text, borders, rings, gradients and more. Combine them with state variants and the slash opacity modifier:

<button class="bg-indigo-600 text-white hover:bg-indigo-700 focus:ring-4 focus:ring-indigo-500/40">
  Save changes
</button>
<p class="text-slate-700">Body text</p>
<div class="border border-emerald-200 bg-emerald-50">Success message</div>

Adding your own palette

To keep a brand color alongside the defaults, extend the theme. In Tailwind CSS v3 this lives in tailwind.config.js; in v4 you declare theme variables in your CSS file.

/* Tailwind v3: tailwind.config.js */
theme: { extend: { colors: { brand: { 50: '#eef2ff', 500: '#6366f1', 900: '#312e81' } } } }

/* Tailwind v4: your CSS */
@theme {
  --color-brand-50: #eef2ff;
  --color-brand-500: #6366f1;
  --color-brand-900: #312e81;
}

HEX, RGB, HSL and OKLCH

All four formats describe the same colors. HEX and RGB are the most widely supported. HSL is easier to adjust by hand because lightness and saturation are separate numbers. OKLCH is the newest format; it keeps perceived lightness consistent between hues and can reach the wider color range of modern displays, which is why Tailwind CSS v4 defines its default palette in OKLCH. Older browsers that do not understand OKLCH need a HEX or RGB fallback.

Check contrast before you ship

WCAG asks for a contrast ratio of at least 4.5:1 for normal text and 3:1 for large text and interface components. As a rule of thumb, text in the 600 to 900 range reads well on white or 50-level backgrounds for most families. Light hues such as yellow, amber, lime and cyan usually need 700 or darker to pass as text, and white text on a 500-level yellow or amber button is hard to read. Always confirm the final pairing with a contrast checker.

Tips for a consistent interface

  • Pick one primary hue and one neutral family (slate, gray, zinc, neutral or stone differ slightly in undertone) and stay with them.
  • Use the same step for the same job everywhere, for example 600 for buttons and 700 for their hover state.
  • Reserve red, amber and green for error, warning and success messages so the meaning stays clear.
  • For dark mode, mirror the scale: a 50 background becomes 950 and 700 text becomes 300.

Need more color tools? Try the Gradient Generator, the Color Chart, the Color Converter or the HTML Color Codes list.

Copied!