Skip to main content
WorkUtilities

Color Palette Generator โ€” Tailwind Scale from Any Hex

Generate a complete Tailwind 50โ€“950 color scale from your brand hex. Copy tailwind.config.js or CSS variables with WCAG contrast badges.

Runs in your browserFree ยท No signup
50#f4f6fbโœ… B
100#e7edf9โœ… B
200#c3d5f4โœ… B
300#97b9f2โœ… B
400#5f96f1โœ… B
500#4f8ef7โœ… B
600#2470efโœ… W
700#155dd6โœ… W
800#164eacโœ… W
900#153f84โœ… W
950#0b1e3cโœ… W
// tailwind.config.js
module.exports = {
  theme: {
    extend: {
      colors: {
        brand: {
          50: '#f4f6fb',
          100: '#e7edf9',
          200: '#c3d5f4',
          300: '#97b9f2',
          400: '#5f96f1',
          500: '#4f8ef7',
          600: '#2470ef',
          700: '#155dd6',
          800: '#164eac',
          900: '#153f84',
          950: '#0b1e3c',
        }
      }
    }
  }
}

50โ€“950 scale

Full Tailwind color range

HSL algorithm

Consistent tint & shade

WCAG contrast

White or black text badge

About Color Palette Generator

Our free Color Palette Generator creates a complete Tailwind CSS 50-950 color scale from any hex input using HSL-based tint and shade generation.

Copy tailwind.config.js or CSS custom properties output. Each shade includes WCAG AA contrast badge showing whether white or black text passes.

No signup, runs entirely in your browser. Designed for developers who need brand colors that work across Tailwind utility classes.

Read the full guide: Color palette generator for Tailwind CSS โ€” hex to full scale

When Should You Use the Color Palette Generator?

Brand colors

Convert a single brand hex into a full design token scale.

Tailwind projects

Generate theme.extend.colors for custom palettes.

CSS variables

Export --color-brand-* variables for any CSS project.

Accessibility

Check which shades work for text on light/dark backgrounds.

Design systems

Create consistent hover, border, and background shades.

Frequently Asked Questions

What is a Tailwind color scale?

Tailwind CSS uses a numeric scale from 50 (lightest) to 950 (darkest) for colors โ€” 11 shades total. This systematic approach ensures visual consistency: shade 50 works for backgrounds, 200-300 for borders, 500 for primary actions, 700-800 for text on light backgrounds, and 900-950 for dark mode backgrounds.

How do I add a custom color palette to Tailwind?

Add your custom colors in tailwind.config.js under theme.extend.colors: { yourColorName: { 50: '#hex', 100: '#hex', ..., 950: '#hex' } }. This makes classes like bg-yourColorName-100 or text-yourColorName-700 available throughout your project.

What is WCAG contrast ratio and why does it matter?

WCAG (Web Content Accessibility Guidelines) contrast ratio measures the difference in lightness between text and background. A ratio of 4.5:1 or higher (AA compliance) is required for normal text, 3:1 for large text. This ensures readability for users with visual impairments and is increasingly required for legal compliance.

Can I use this palette in non-Tailwind projects?

Yes โ€” the CSS variables output (--color-brand-50 etc.) works in any CSS project. Define the variables in :root and use them as var(--color-brand-500) anywhere in your CSS or inline styles.

Is this generator free?

Yes. WorkUtilities Color Palette Generator is free with no signup.

Help Us Improve

Your feedback helps us build better tools.