ColorMay 2026 ยท 5 min read

How to Create Color Scales and Gradient Ramps

Generate even color scales for design systems. 10-step ramps that work in light mode, dark mode, and data visualization.

๐Ÿ“
Try the Shade & Tint Generator
Free, no signup
โ†’
DG
Derek Giordano
Designer & Developer
In this guide
01What Color Scales Are For02Generating Perceptually Even Steps03Dark Mode Considerations04Using Scales in Design Tokens
โšก Key Takeaways
  • Generate even color scales for design systems.
  • What Color Scales Are For.
  • Generating Perceptually Even Steps.
  • Dark Mode Considerations.
  • Using Scales in Design Tokens.

What Color Scales Are For

A color scale is a systematic range from very light to very dark in 10 steps (50โ€“900). Design systems like Tailwind, Material, and Radix use this pattern because it gives designers predetermined options guaranteed to work together. Instead of picking arbitrary shades, you select from the scale: blue-100 for backgrounds, blue-500 for buttons, blue-900 for text. This eliminates inconsistency and makes decisions faster across large teams.

Generating Perceptually Even Steps

The key to professional scales is perceptual uniformity โ€” each step should feel like the same change. In HSL, equal lightness steps produce uneven visual results. OKLCH solves this: set your hue and chroma, then step lightness from 0.97 (step 50) to 0.15 (step 900) evenly. Decrease chroma slightly at extremes โ€” very light and dark shades look more natural with lower saturation. Use the Shade & Tint Generator to produce these scales automatically, or fine-tune each step by eye after generation.

Dark Mode Considerations

Dark mode requires adjusting how you use the scale, not rebuilding it. Light mode: light steps (50โ€“200) for backgrounds, dark steps (700โ€“900) for text. Dark mode: flip โ€” dark steps for backgrounds, light steps for text. But the interactive range (400โ€“600) may need adjustment โ€” colors that look great on white can look dull on dark backgrounds. Create separate interactive color tokens for dark mode, typically 1โ€“2 steps lighter and slightly more saturated. Test both modes with the Contrast Checker.

Using Scales in Design Tokens

Store your scale as design tokens โ€” platform-agnostic key-value pairs consumed by CSS, React, iOS, and Android. Define semantic tokens on top: --color-text-primary: var(--gray-900) for light mode, overridden to var(--gray-100) in dark mode. Semantic tokens let you change the underlying scale without touching component code. Export as CSS custom properties for web, JSON for JavaScript, XML for mobile. This architecture scales from personal projects to large design systems.

Frequently Asked Questions

How many steps should a color scale have?+
10 steps (50โ€“900) is the industry standard, providing enough granularity for complex interfaces without overwhelming designers.
Should I generate scales for every brand color?+
Full scales for primary, secondary, and neutral. Functional colors (success, error, warning) need at least 3โ€“5 steps (light, base, dark).
Can I use the same scale for light and dark mode?+
Yes โ€” use the same scale but map semantic tokens differently. Light mode uses the light end for backgrounds, dark end for text. Dark mode reverses this.
Try it yourself

Use the Shade & Tint Generator โ€” free, no signup required.

โšก Open Shade & Tint Generator
DG
Derek Giordano
Written by the creator of Ultimate Design Tools. BA in Business Marketing.