Color Scales for UI Design: From 50 to 950
How to construct perceptual, accessible 10-step color scales for design systems.
Key Technical Takeaway
A 50-950 UI color scale provides a 10-step progression of tints and shades derived from a base brand hue. Constructing scales in OKLCH space ensures smooth lightness progression and avoids dirty mid-tones.
What is a 50-950 UI Color Scale?
Modern design frameworks (such as Tailwind CSS, Radix UI, and Material Design) organize colors into 10 numeric shade steps ranging from 50 (lightest tint) to 950 (darkest shade). Step 500 typically serves as the primary base brand accent.
The 10-Step Role Mapping Convention
Each shade step serves a specific structural role in component styling:
| Shade Step | Typical UI Role | Light Mode Surface | Dark Mode Surface |
|---|---|---|---|
| 50 | Subtle background tint | Card & alert backgrounds | Muted text / highlight |
| 100 | Hover state for bg tint | Secondary surface / hover | Subtle dark border |
| 200 | Light border / divider | Card borders & dividers | Dark surface background |
| 300 | Disabled text / border | Secondary borders | Dark card background |
| 400 | Muted icon / placeholder | Form placeholders | Active dark borders |
| 500 | Primary Base Accent | Buttons, switches, badges | Primary base accent |
| 600 | Primary Hover State | Button hover state | Button hover state |
| 700 | Active / Pressed State | Pressed button state | Active text / badge |
| 800 | High-contrast text | Dark body text on tint bg | Light surface text |
| 900 / 950 | Primary Dark Text / Bg | Headings & dark surfaces | Deep background canvas |
Perceptual Lightness Curves in OKLCH Space
Linear RGB or HSL darkening produces uneven steps—colors often look muddy between 400 and 700. In OKLCH space, lightness (L) decreases along a smooth bezier curve from L ~0.98 at shade 50 down to L ~0.18 at shade 950, while chroma (C) peaks near shade 500 and gently tapers at the extremes.
/* Example OKLCH Lightness Progression for Blue Scale */
--blue-50: oklch(0.97 0.03 250);
--blue-100: oklch(0.92 0.06 250);
--blue-200: oklch(0.84 0.11 250);
--blue-300: oklch(0.75 0.16 250);
--blue-400: oklch(0.66 0.20 250);
--blue-500: oklch(0.58 0.23 250); /* Base Accent */
--blue-600: oklch(0.50 0.21 250);
--blue-700: oklch(0.42 0.18 250);
--blue-800: oklch(0.32 0.14 250);
--blue-900: oklch(0.24 0.10 250);
--blue-950: oklch(0.16 0.06 250);Best Practices for Scale Generation
Key guidelines for maintaining clean color scales:
- Reduce Chroma at steps 50 and 950 to prevent gamut clipping and unnatural oversaturation.
- Slightly rotate Hue angle (1-3°) between light and dark steps to simulate natural ambient light.
- Verify that shade 700+ achieves at least 4.5:1 contrast against shade 50/100 backgrounds.