Palette

Color Shades Generator

Generate a 10-step scale of lighter and darker shades of any color for design systems.

Palette

Why Use the Color Shades Generator?

Enter one color and this color shades generator builds a 10-step lightness scale around its hue, running from a barely-there pale step to a deep, almost black one. Each swatch carries a WCAG badge for the text color that reads best on it, so you can see at a glance which steps suit backgrounds and which can hold text. Designers use it to grow a single brand color into a complete ramp, and developers can copy the whole set as CSS custom properties.

How to Use the Color Shades Generator

  1. Choose the base color with the picker or type its HEX, rgb(), hsl() or name value into the text field.
  2. Scan the 10 swatches from very light to very dark and note where your original color falls in the scale.
  3. Check the WCAG badge on each swatch to find the steps that support readable text and the ones better kept for backgrounds and borders.
  4. Click a swatch to copy a single HEX code, or copy the CSS custom properties to add the entire scale to your stylesheet.

Best For

  • Creating a 10-step color ramp for a design system, from subtle backgrounds to strong text colors.
  • Choosing hover and pressed states for a button by stepping one or two swatches darker.
  • Finding a pale step of a brand color for section backgrounds or highlighted table rows.
  • Picking a dark step of the brand hue to use for headings instead of plain black.

Pro Tip

A scale that only changes lightness can look lifeless at the extremes, with dark yellows turning olive and the palest steps feeling washed out. Many design systems fix this by rotating the hue a few degrees as steps get darker, for example nudging yellow toward orange, and by keeping saturation up in the darkest steps so they do not fade to gray. Copy the generated scale, then make those small hue and saturation adjustments by hand in HSL for a more natural ramp.

FAQ

Color Shades Generator FAQ

How do I make a color darker or lighter?

The simplest method is to convert it to HSL and change only the lightness, keeping hue and saturation the same; lower lightness darkens and higher lightness lightens. In CSS you can also blend with black or white, for example color-mix(in srgb, #3366cc, black 20%). This generator does the lightness stepping for you across 10 swatches.

What is the difference between a shade and a tint?

Strictly speaking, a shade is a color darkened by adding black and a tint is a color lightened by adding white. In everyday design talk, shades often means the whole light-to-dark range of one hue, which is what this tool produces. For separate rows mixed with white, gray and black, use the Tint, Tone and Shade Generator.

How many shades should a color scale have?

Ten or eleven steps is the common choice in design systems: the classic Material Design palette uses 50 to 900, and Tailwind CSS uses 50 to 950. That range gives enough options for backgrounds, borders, text and interactive states without neighboring steps looking almost identical.

What does the WCAG badge on each shade mean?

It reports the text color, light or dark, that reads best on that swatch, measured against the WCAG contrast guidelines. WCAG AA asks for at least 4.5:1 for normal text and 3:1 for large text, while AAA asks for 7:1 for normal text. Steps in the middle of a scale are often the hardest to pair with readable text.

Learn more

Guides for the Color Shades Generator

Why Your Website Colors Look Cheap (and How to Fix It)

Stop using pure, highly saturated primary colors. Learn the premium blending techniques top design studios use.

Read Guide

Best Website Color Combinations (With HEX Codes You Can Copy)

12 of the best website color combinations with HEX codes you can copy, when to use each one, and how to adapt them to your brand while keeping text readable.

Read Guide

CSS Box Shadow: How to Create Realistic, Layered Shadows

Master CSS box shadow syntax, then build realistic layered shadows with tinted colors, elevation tokens and dark-mode variants that look natural in any UI.

Read Guide
Copied