Tailwind Color Generator

Generate custom Tailwind CSS color palettes from any base color

Configure Your Color

Generated Palette

Tailwind Config

// tailwind.config.js
module.exports = {
  theme: {
    extend: {
      colors: {
        'primary': {
      50: '#e3eaf4',
      100: '#c8dcfc',
      200: '#a5c6fb',
      300: '#82b0f9',
      400: '#5f9af7',
      500: '#3c83f6',
      600: '#0b64f3',
      700: '#0950c1',
      800: '#073b8f',
      900: '#04275e',
      950: '#0a1e3e',
        },
      },
    },
  },
}

CSS Variables

:root {
  --primary-50: #e3eaf4;
  --primary-100: #c8dcfc;
  --primary-200: #a5c6fb;
  --primary-300: #82b0f9;
  --primary-400: #5f9af7;
  --primary-500: #3c83f6;
  --primary-600: #0b64f3;
  --primary-700: #0950c1;
  --primary-800: #073b8f;
  --primary-900: #04275e;
  --primary-950: #0a1e3e;
}

Related Tools

What is Tailwind CSS Color Generation?

Tailwind CSS uses a numerical shade system (50-950) to create consistent color palettes. This generator creates a complete 11-shade palette from any base color, matching Tailwind's conventions for use in your projects.

Simply pick a color, name it, and get ready-to-use Tailwind config code and CSS variables. Perfect for creating custom brand colors that integrate seamlessly with Tailwind's utility classes.

Understanding Tailwind Shades

ShadeTypical Use
50-100Backgrounds, hover states
200-300Borders, dividers
400-600Primary UI, buttons, links
700-950Text, dark mode backgrounds

How to Use

1. Copy the Tailwind Config

Add the generated config to your tailwind.config.js file under theme.extend.colors.

2. Use in Your HTML

bg-primary-500, text-primary-900, border-primary-200

Best Practices

  • Use shade 500 as your base: This is the "default" shade in Tailwind's system.
  • Semantic naming: Use names like "primary", "accent", "success" instead of "blue".
  • Test contrast: Ensure text colors have sufficient contrast against backgrounds.
  • Consider dark mode: Test your palette in both light and dark modes.

Frequently Asked Questions

Why use generated palettes?

Consistent shade progressions ensure predictable behavior with hover states, borders, and text. Hand-picking each shade is error-prone.

Can I fine-tune individual shades?

Yes! Use this generator as a starting point, then manually adjust specific shades in your config.