Developer Tools ToolWCAG 2.2 Compliant

Tailwind Color Generator — Create 50-950 Color Scales

Generate complete Tailwind v3 & v4 color scales from any base color in OKLCH or sRGB. Export config with 50-950 shade stops for design systems.

Scale Anchor

Base Color & Token Configuration

Choose a base anchor color and token prefix to construct your 11-step scale.

Prefix:

Generated 50–950 Color Scale

OKLCH Perceptual Curve
50
Aa

#EFF6FF

oklch(98.0% 0.051 277.1)

Contrast: 19.3:1
100
Aa

#DCE7FF

oklch(94.3% 0.092 277.1)

Contrast: 16.92:1
200
Aa

#BFCDFF

oklch(87.6% 0.143 277.1)

Contrast: 13.39:1
300
Aa

#9DA9FF

oklch(78.2% 0.180 277.1)

Contrast: 9.55:1
400
Aa

#7F88FF

oklch(68.7% 0.196 277.1)

Contrast: 6.87:1
500BASE
Aa

#6366F1

oklch(58.5% 0.204 277.1)

Contrast: 4.7:1
600
Aa

#4C4BCC

oklch(49.3% 0.194 277.1)

Contrast: 6.59:1
700
Aa

#372FA4

oklch(39.9% 0.180 277.1)

Contrast: 9.97:1
800
Aa

#231879

oklch(30.4% 0.153 277.1)

Contrast: 14.21:1
900
Aa

#130651

oklch(21.9% 0.122 277.1)

Contrast: 17.92:1
950
Aa

#07002F

oklch(14.6% 0.092 277.1)

Contrast: 20:1

Developer Code Exports

@theme {
  --color-brand-50: #EFF6FF;
  --color-brand-100: #DCE7FF;
  --color-brand-200: #BFCDFF;
  --color-brand-300: #9DA9FF;
  --color-brand-400: #7F88FF;
  --color-brand-500: #6366F1;
  --color-brand-600: #4C4BCC;
  --color-brand-700: #372FA4;
  --color-brand-800: #231879;
  --color-brand-900: #130651;
  --color-brand-950: #07002F;
}

Quick Answer: What is a Tailwind color scale generator?

A Tailwind color scale generator creates a perceptually uniform 11-step color palette (ranging from 50 to 950) anchored by a single base color. It outputs CSS custom properties, Tailwind CSS v4 @theme declarations, Tailwind v3 JS config, JSON design tokens, and SCSS variables for modern frontend design systems.

Frequently Asked Questions — Tailwind Color Generator

Authoritative answers to common questions about tailwind color generator concepts, standards, and workflow integration.

How do I generate Tailwind CSS color scales?

Enter a base color into PaletteKey's Tailwind Color Generator. It automatically creates the full 50-950 scale using perceptually uniform OKLCH interpolation, then exports a ready-to-use Tailwind config file with your custom color name.

Does PaletteKey support Tailwind CSS v4?

Yes. PaletteKey exports both Tailwind v3 (tailwind.config.js with theme.extend.colors) and Tailwind v4 (CSS-first configuration with @theme blocks). Select your preferred version in the export settings before copying the config.

What is the 50-950 naming convention in Tailwind?

Tailwind uses 50-950 scale names where 50 is the lightest tint and 950 is the darkest shade. The base color typically sits at 500. This convention is standard across Tailwind, Material Design, and modern CSS frameworks for consistent hover states and dark mode mapping.

Can I use OKLCH color values in Tailwind CSS?

Yes, Tailwind v4 natively supports OKLCH. PaletteKey generates Tailwind scales in OKLCH format, producing more perceptually uniform color steps than HSL or HEX-based scales. The exported config uses CSS custom properties with oklch() values for modern browsers.

How do I add custom colors to my Tailwind config?

Copy the exported config from PaletteKey into your tailwind.config.js under theme.extend.colors (v3) or into your CSS file as @theme variables (v4). Your custom scale (e.g., brand-50 through brand-950) becomes available as utility classes like text-brand-500 and bg-brand-700.