How to Generate Color Shades: Build Consistent Palettes from One Color

A single brand color isn’t enough. You need lighter versions for backgrounds and hover states, and darker ones for text, borders, and pressed states. Manually picking each step is tedious and often inconsistent.
Color shades — variations of one color by changing only lightness — give you a full, consistent scale from one decision. Here’s how to generate them and use them in design systems, Tailwind-style palettes, and CSS.
What Are Color Shades?
Shades are variations of a single color made by changing only lightness (in HSL). Hue and saturation stay the same, so you get one coherent family from very light to very dark.
Unlike tints (adding white) or tones (adding gray), generating shades via HSL lightness keeps the color’s character across the scale and avoids a washed-out look in the lighter steps.
That makes shades ideal for:
- Design system scales (e.g. primary-50 through primary-900)
- Tailwind-style palettes
- CSS custom properties for theming
- Buttons, cards, and UI components
Why Use a Shades Generator?
Building a scale by hand is slow and easy to get wrong. You have to:
- Keep hue and saturation identical
- Space lightness steps evenly
- Export hex, RGB, HSL, or CSS for dev
The Tooladex Color Shades Generator does this automatically: you pick a base color and how many steps you want (e.g. 9 or 11), and it produces a full scale with your base in the middle. You can copy hex, RGB, HSL, or a ready-to-paste :root block of CSS variables.
Example: Building a Button Palette
Start with a brand blue like #3B82F6. The generator gives you:
- Lighter shades (50–400) — Backgrounds, hover states, disabled buttons
- Your base color (500) — Primary actions and default state
- Darker shades (600–900) — Pressed states, borders, text on light backgrounds
One color decision becomes a full component palette. Use the same approach for secondary, accent, or semantic colors (success, warning, error).
How Many Shades Should You Generate?
Most design systems use 9–11 steps. Tailwind uses 10 (50, 100, 200…900). Fewer steps (5–7) work for simpler projects; more steps give finer control but can be overkill.
The Tooladex tool supports 3, 5, 7, 9, 11, or 15 shades. For Tailwind-like setups, choose 9 (labels 100–900) or 11 (50–950).
Output Formats
You can copy shades in several formats:
- Hex — e.g.
#EFF6FF,#DBEAFE— for design tools and inline styles - RGB — e.g.
rgb(239, 246, 255)— for programmatic use - HSL — e.g.
hsl(214, 100%, 97%)— for tweaking in code - CSS variables — A
:root { --color-100: #...; --color-200: #...; }block you can drop into your stylesheet
Use the “Copy as CSS variables” option with a base name (e.g. --color-primary) to get a full scale ready for theming.
Tips for Better Results
- Treat your base as the middle — Think of the base color as the 500 step, not the darkest. The generator places it in the center and builds lighter and darker from there.
- Check contrast early — Use lighter shades (50–200) for backgrounds with dark text; use darker shades (700–900) for text on light backgrounds so you meet accessibility guidelines.
- Avoid pure black or white as base — Start with a color that has some saturation (e.g. 10%+). Pure gray scales can look flat; a hint of hue keeps the scale more usable and natural.
If a scale looks off (e.g. too flat or too harsh), try adjusting your base color’s saturation slightly. HSL lightness works best with moderate saturation (around 20–80%).
Try the Color Shades Generator
The Tooladex Color Shades Generator runs entirely in your browser: pick a base color, choose the number of shades, and copy hex, RGB, HSL, or CSS variables. No account, no data sent to a server — just a full palette from one color.
Color Shades Generator
Generate lighter and darker shades from any base color. Create consistent color scales for design systems, CSS variables, and Tailwind-style palettes. Copy hex, RGB, HSL, or CSS.