
A color scale is a set of numbered tints and shades of one color — commonly 50 to 950 — that a design system uses for backgrounds, borders, buttons and text. To build one, pick a mid-tone base color, generate lighter versions by mixing it with white and darker versions by mixing it with black, check contrast for each step, then save the results as design tokens. This guide walks through the process with a real example.
Why Use a Color Scale?
- Consistency: designers and developers pick from a fixed set instead of inventing new shades.
- Hierarchy: light steps for surfaces, mid steps for actions and dark steps for text create a predictable visual order.
- Easier dark mode: you can swap steps (for example, 900 for 100) instead of choosing new colors.
- Faster decisions: “use brand-600 for hover” is clearer than a new HEX code every time.
Step 1: Choose a Base Color
Start with your main brand color and place it at step 500. A mid-tone works best; a very light or very dark base leaves little room on one side of the scale. In this example the base is #6C5CE7.
Step 2: Create Tints and Shades
Lighter steps are tints (mixed with white) and darker steps are shades (mixed with black). Here is the scale produced by our Color Shades Generator for #6C5CE7:
| Step | HEX | Contrast with white | Contrast with black |
|---|---|---|---|
| 50 | #F8F7FE | 1.06:1 | 19.72:1 |
| 100 | #F0EFFD | 1.13:1 | 18.47:1 |
| 200 | #DAD6F9 | 1.40:1 | 14.96:1 |
| 300 | #C4BEF5 | 1.74:1 | 12.03:1 |
| 400 | #988DEE | 2.84:1 | 7.37:1 |
| 500 | #6C5CE7 | 4.85:1 | 4.32:1 |
| 600 | #5C4EC4 | 6.28:1 | 3.34:1 |
| 700 | #4C40A2 | 8.19:1 | 2.56:1 |
| 800 | #3B337F | 10.68:1 | 1.96:1 |
| 900 | #2B255C | 13.79:1 | 1.52:1 |
| 950 | #1B173A | 17.06:1 | 1.23:1 |
Contrast ratios use the WCAG 2 formula and are rounded down.
Step 3: Assign Roles
| Role | Suggested step |
|---|---|
| Page or section background | 50–100 |
| Borders, subtle fills, badges | 200–300 |
| Primary button | 500 or 600 |
| Button hover / pressed | 600 / 700 |
| Headings and text on light backgrounds | 800–950 |
Step 4: Check Contrast for Each Pairing
The table shows why roles matter. White text on step 500 measures 4.85:1, just above the 4.5:1 WCAG AA minimum for normal text, while white on 600 reaches 6.28:1 — a more comfortable choice for button labels. On light backgrounds, steps 800–950 give strong contrast for text. Always verify your real pairs in the Contrast Checker.
Step 5: Save the Scale as Tokens
:root {
--brand-50: #F8F7FE;
--brand-100: #F0EFFD;
--brand-500: #6C5CE7;
--brand-600: #5C4EC4;
--brand-900: #2B255C;
}
.button { background: var(--brand-600); color: #FFFFFF; }
.button:hover { background: var(--brand-700, #4C40A2); }
The Color Shades Generator exports the full scale as CSS variables, a Tailwind config, SCSS variables or JSON tokens.
Step 6: Repeat for Neutrals and Status Colors
A complete system usually includes a gray scale for text and surfaces, and scales for success, warning and error colors. Build each one the same way so steps line up across colors — for example, every 600 works as a button color. For guidance on choosing these colors, see How to Choose a Website Color Palette, and for dark themes read How to Build a Dark Mode Color Palette.
Common Mistakes
- Too many steps in use. Having 11 steps doesn’t mean using all of them; most interfaces need four or five.
- Skipping contrast checks. A step that looks dark enough may still fail for small text.
- Inconsistent naming. Keep the same step numbers and roles for every color.
How Many Steps Should a Scale Have?
There is no single correct number, but most design systems settle on 9 to 11 steps per color. A common pattern uses the numbers 50, 100, 200, 300, 400, 500, 600, 700, 800, 900 and sometimes 950. This range gives enough variety for backgrounds, borders, text and interactive states without becoming difficult to choose from.
- Small projects such as a landing page or a simple blog can work with 5 steps: very light, light, base, dark and very dark.
- Medium projects such as business websites and online stores benefit from 9 or 10 steps.
- Large products such as SaaS dashboards and multi-brand platforms may use 11 or 12 steps, plus separate scales for dark mode.
The numbering leaves gaps so you can add a new step later, for example 150 or 750, without renaming everything.
Perceptual Uniformity: Why Equal Steps Can Look Unequal
If you create a scale by changing HSL lightness in equal amounts, the steps often look uneven. Some jumps feel big and others feel tiny. This happens because HSL lightness does not match how human eyes perceive brightness. Yellows and greens look much brighter than blues and purples at the same HSL lightness.
The result is that a yellow scale and a blue scale built with the same HSL values will not line up visually. The yellow 500 might look as bright as the blue 200, which makes it hard to use the scales interchangeably.
Using perceptual color spaces
Color spaces such as CIELAB, LCH and OKLCH were designed so that equal numerical changes look like equal visual changes. Building scales in OKLCH gives more consistent results:
--blue-100: oklch(95% 0.03 260);
--blue-300: oklch(80% 0.09 260);
--blue-500: oklch(62% 0.19 260);
--blue-700: oklch(45% 0.17 260);
--blue-900: oklch(30% 0.10 260);
Because the L value is perceptual, a green 500 and a blue 500 with the same lightness will look similarly bright. This makes text contrast more predictable across all your colors.
Adjusting Saturation Across the Scale
Keeping saturation constant across a scale often produces light steps that look too intense and dark steps that look muddy. Most professional scales vary saturation slightly:
- Very light steps (50–200) use lower saturation so backgrounds feel calm rather than candy-like.
- Middle steps (400–600) have the highest saturation, because these are used for buttons and key accents.
- Dark steps (700–900) reduce saturation gradually to avoid neon-like dark colors, but not so much that they turn gray.
The goal is for every step to feel like it clearly belongs to the same color family while still being useful for its role.
Hue Shifting for Richer Scales
Many designers rotate the hue slightly as the scale gets lighter or darker. Light steps shift a few degrees toward yellow or warmer hues, while dark steps shift toward blue or cooler hues. This mimics how light behaves in the real world and prevents dark shades from looking flat.
For example, a green scale might move from a yellow-green at step 100 to a blue-green at step 900. The change is subtle, often only 5 to 15 degrees, but it makes the scale feel more natural and vibrant. Yellow and orange scales benefit the most, because simply darkening yellow tends to produce an unpleasant olive color. Shifting dark yellows toward orange keeps them looking golden.
Primitive Tokens and Semantic Tokens
A mature design system uses two layers of color tokens.
Primitive (or base) tokens
These are the raw scale values, named by color and step: blue-500, gray-100, red-700. They describe what the color is, not how it is used.
Semantic (or alias) tokens
These describe the purpose of a color and point to a primitive token: color-text-primary, color-bg-surface, color-border-subtle, color-action-primary. Components use only semantic tokens.
:root {
--blue-600: #2563EB;
--gray-900: #111827;
--gray-50: #F9FAFB;
--color-action-primary: var(--blue-600);
--color-text-primary: var(--gray-900);
--color-bg-page: var(--gray-50);
}
This structure makes changes safe and fast. If the brand decides buttons should be a darker blue, you update one semantic token to point to blue-700 instead of searching through every component.
Building a Dark Mode Scale
Dark mode is not simply the light scale reversed. Colors behave differently on dark backgrounds, and very saturated colors can look harsh or vibrate. Common approaches include:
- Reusing the same primitives with different mappings. In light mode, text uses
gray-900; in dark mode, text usesgray-100. Buttons might move fromblue-600toblue-400. - Creating a separate dark scale. Some systems define slightly desaturated versions of each color specifically for dark surfaces.
- Elevation with lighter surfaces. In dark mode, higher surfaces such as cards and modals use slightly lighter grays than the page background to show depth.
Whichever approach you choose, test contrast separately for dark mode. A pairing that passes in light mode does not automatically pass in dark mode.
Documenting the Scale
A color scale is only useful if people understand how to use it. Good documentation includes:
- A visual row of swatches for each scale with HEX, RGB and token names.
- The contrast ratio of each step against white and against the darkest background.
- Clear guidance on which steps to use for text, backgrounds, borders and interactive states.
- Examples of correct and incorrect usage.
- Dark mode mappings.
Keep the documentation close to the code, for example in a shared design file and a page in your component library, so designers and developers always see the same information.
Testing a Scale in Real Components
Swatches in a row can look perfect while failing in actual interfaces. Before finalizing a scale, apply it to a set of common components: buttons in all states, form fields, alerts, badges, cards, navigation, tables and charts. Look for these issues:
- Hover and pressed states that are too similar to the default state.
- Borders that disappear on light backgrounds.
- Badges where text and background blend together.
- Status colors that look too similar to the brand color.
- Charts where adjacent series are hard to tell apart.
Adjust individual steps until every component looks clear and consistent.
Complete Example: A Teal Brand Scale
Here is a full example of a scale built from a teal brand color, with suggested uses for each step.
- 50:
#F0FDFA— page section backgrounds - 100:
#CCFBF1— selected rows, subtle highlights - 200:
#99F6E4— light borders, progress bar tracks - 300:
#5EEAD4— decorative shapes, illustrations - 400:
#2DD4BF— icons and accents in dark mode - 500:
#14B8A6— base brand color, large graphics - 600:
#0D9488— primary buttons (with white text) - 700:
#0F766E— button hover, links on white - 800:
#115E59— headings, dark badges - 900:
#134E4A— footer and dark sections - 950:
#042F2E— dark mode surfaces
Notice how the lightest steps are calm and nearly white, the middle steps are vivid, and the darkest steps become deep and slightly cooler. White text passes AA contrast from step 600 onward, while dark text works well on steps 50 to 300.
Maintaining Your Scales Over Time
Design systems evolve. New products, rebrands and accessibility updates all affect colors. To keep scales healthy:
- Version your tokens so teams know when colors change.
- Audit usage regularly and remove hard-coded colors that bypass the system.
- Retest contrast whenever a step is adjusted.
- Collect feedback from designers and developers about gaps, such as a missing step for a specific use case.
- Communicate changes with clear release notes and before-and-after examples.
A well-built color scale can serve a product for years. Investing time in getting it right at the beginning pays off in consistency, accessibility and faster design work for everyone on the team.
Color Scales for Data Visualization
Charts and maps often need their own scales, separate from interface colors.
Sequential scales
A sequential scale moves from light to dark in one hue and represents values from low to high, such as population or sales. Your brand scale can often be reused here, using steps 100 through 900.
Diverging scales
A diverging scale uses two hues that meet at a light neutral in the middle. It shows values above and below a central point, such as profit and loss or temperature differences. Blue to orange is a popular, color-blind-friendly choice.
Categorical palettes
For separate categories, such as product lines or regions, use distinct hues at similar lightness so no category looks more important than another. Limit categorical palettes to about eight colors; beyond that, people struggle to match colors to labels.
Tools and Workflow Tips
You can build color scales manually, but tools speed up the process considerably. Shades generators create tints and shades from a base color in seconds. Design tools let you save scales as shared styles or variables, and many support exporting tokens directly to code. Contrast checkers confirm which steps are safe for text.
A practical workflow looks like this: generate an initial scale with a shades generator, adjust individual steps by eye in your design tool, check contrast for key pairings, then export the final values as CSS variables or design tokens. Store the source of truth in one place, such as a tokens file in your code repository, so design and development never drift apart.
Finally, review your scales on real devices. Colors that look balanced on a calibrated monitor may look different on a phone in sunlight. A quick real-world check can reveal steps that need small adjustments before the system goes live.
Quick Checklist
- Each scale has 9 to 11 clearly different steps.
- Middle steps are the most saturated; light and dark ends are calmer.
- Text-safe steps are documented for light and dark backgrounds.
- Primitive and semantic tokens are separated.
- Dark mode mappings are defined and tested.
Follow these principles and your color scale will become a dependable foundation that keeps every page, component and campaign looking consistent and accessible.
Frequently Asked Questions
Why do color scales use numbers like 50 and 950?
The numbers indicate lightness order, from lightest (50) to darkest (950). The convention is popular because it leaves room to add steps later.
Should the base color always be 500?
It’s a common convention, but you can place it elsewhere if your brand color is unusually light or dark.
Is mixing with white and black the only method?
No. Some teams adjust lightness in HSL or use perceptual color spaces such as OKLCH for more even steps. Mixing with white and black is simple and predictable, which makes it a good starting point.
How many color scales does a design system need?
Usually one brand scale, one neutral gray scale and scales for success, warning and error states.
Final Thoughts
Start with one well-chosen base color, generate tints and shades, assign clear roles, check contrast and save the results as tokens. Generate a scale for any color in seconds with the Color Shades Generator.