GamutDesk Logo
GamutDesk

Tailwind-Compatible Color Scale Generator

Generate an 11-step color scale (50 through 950) formatted for Tailwind CSS v3 and v4 theme configurations.

Client-Side ArchitecturePrivate Client-Side Processing
11-Step Palette Ramp (Click Swatch to Copy)
Perceptual Lightness Stepping & Design System Hierarchy
StepSwatchHexLightness (L)Saturation (S)Recommended UI Role
50#EFF3FB96%60%Subtle tint, light card backgrounds
100#D5DFF690%65%Hover states for light backgrounds, badges
200#A8BFF080%71%Soft borders, dividers, subtle accents
300#799DEC70%75%Secondary borders, disabled input frames
400#487BEA60%79%Muted decorative icons, placeholder accents
500#2563EB53%83%Primary brand anchor, main UI buttons
600#1450D245%83%Primary button hover, active interactive state
700#1242AB37%81%High-contrast headings, accessible text on light
800#10358429%78%Deep card surfaces, dark mode UI elements
900#0D275E21%76%Dark mode background containers
950#0A193913%70%Deepest canvas background, terminal panels
Tailwind CSS v4 (@theme)
/* Tailwind CSS v4 @theme */
@theme {
  --color-brand-50: #EFF3FB;
  --color-brand-100: #D5DFF6;
  --color-brand-200: #A8BFF0;
  --color-brand-300: #799DEC;
  --color-brand-400: #487BEA;
  --color-brand-500: #2563EB;
  --color-brand-600: #1450D2;
  --color-brand-700: #1242AB;
  --color-brand-800: #103584;
  --color-brand-900: #0D275E;
  --color-brand-950: #0A1939;
}
Tailwind CSS v3 (tailwind.config)
// tailwind.config.ts
colors: {
  brand: {
    50: '#EFF3FB',
    100: '#D5DFF6',
    200: '#A8BFF0',
    300: '#799DEC',
    400: '#487BEA',
    500: '#2563EB',
    600: '#1450D2',
    700: '#1242AB',
    800: '#103584',
    900: '#0D275E',
    950: '#0A1939',
  },
}

Technical Specification & Mathematical Principles

The Tailwind scale anchors the base color at index 500. Lighter variants (50-400) are mapped through a non-linear luminance curve with targeted saturation dampening.

Darker variants (600-950) apply progressive attenuation down to L = 2% for step 950, producing balanced contrast for dark mode UI backgrounds and text hierarchies.

The perceptual stepping table below details the Lightness (L%) and Saturation (S%) coordinates for each shade alongside standard production UI design tokens.

Frequently Asked Questions

How does the scale preserve chromatic saturation across light and dark steps?
Rather than simply interpolating RGB channels to white or black, the generator modifies Lightness in HSL space while applying logarithmic saturation dampening (sFactor) to prevent washed-out light tones and muddy dark tones.
How do I add this generated palette to Tailwind CSS v4?
In Tailwind CSS v4, you paste the generated CSS custom properties into your global CSS file inside the `@theme` directive, e.g. `--color-brand-500: #2563EB;`.
Does the 500 step match my original base color?
Yes, the 500 step is explicitly pinned to your exact input hexadecimal code, while steps 50-400 branch lighter and steps 600-950 branch darker.

Related Design & Color Instruments