All tools Color Shades Generator ● Live Developer Tools

How Color Shades Generator works

  1. Enter a base color using the color picker or by typing a HEX value (e.g. #3B82F6).
  2. The palette of 11 shades (50 through 950) generates instantly below.
  3. Click any swatch or HEX value to copy that shade to your clipboard.
  4. Click 'Copy as CSS variables' to copy the entire palette as a :root CSS block.
  5. Use the generated shades for backgrounds, borders, hover states, or text colors in your design.
  • Build a Tailwind-style color scale (50-950) from a single brand color for a design system.
  • Generate hover, active, and disabled states for a button by picking adjacent shades.
  • Create a consistent border or divider color a few steps darker than a light background.
  • Produce a full palette for a CSS custom-properties theme without opening a design tool.
  • Check how a brand color looks across a range of lightness values before committing to a UI palette.

All color math runs locally in your browser using JavaScript. Your base color is never sent to a server.

  • Shades are generated using fixed lightness steps in HSL — this is a practical approximation, not a perceptually uniform color space like OKLCH.
  • Only 6-digit HEX input is recognized; shorthand 3-digit HEX or named CSS colors are not parsed.
  • Does not check contrast ratios between shades — verify accessibility separately if shades will hold text.

Color Shades Generator

Color Shades Generator creates practical tint and shade steps from a HEX color. Use it to build UI palettes, hover states, borders, and accessible color systems without opening a design app.

Color Shades Generator Runs locally

Palette

50

100

200

300

400

500

600

700

800

900

950

50rgb(240, 246, 254)
100rgb(226, 236, 254)
200rgb(187, 212, 252)
300rgb(128, 175, 249)
400rgb(70, 138, 246)
500rgb(11, 100, 244)
600rgb(10, 84, 205)
700rgb(8, 68, 166)
800rgb(6, 52, 127)
900rgb(4, 36, 88)
950rgb(3, 24, 58)
Guide

How to use

  1. Enter a base color using the color picker or by typing a HEX value (e.g. #3B82F6).

  2. The palette of 11 shades (50 through 950) generates instantly below.

  3. Click any swatch or HEX value to copy that shade to your clipboard.

  4. Click 'Copy as CSS variables' to copy the entire palette as a :root CSS block.

  5. Use the generated shades for backgrounds, borders, hover states, or text colors in your design.

Scenarios

Use cases

  • Build a Tailwind-style color scale (50-950) from a single brand color for a design system.

  • Generate hover, active, and disabled states for a button by picking adjacent shades.

  • Create a consistent border or divider color a few steps darker than a light background.

  • Produce a full palette for a CSS custom-properties theme without opening a design tool.

  • Check how a brand color looks across a range of lightness values before committing to a UI palette.

Good to know

Limitations & Privacy

Private by design

All color math runs locally in your browser using JavaScript. Your base color is never sent to a server.

  • Shades are generated using fixed lightness steps in HSL — this is a practical approximation, not a perceptually uniform color space like OKLCH.

  • Only 6-digit HEX input is recognized; shorthand 3-digit HEX or named CSS colors are not parsed.

  • Does not check contrast ratios between shades — verify accessibility separately if shades will hold text.

FAQ

Frequently asked questions

Is Color Shades Generator free to use?

Yes. The tool is free and runs directly in your browser with no account required.

Does this tool upload my data?

No. Processing happens locally in the browser tab. Your base color is never sent to a server.

How many shades does it generate?

11 steps — 50, 100, 200, 300, 400, 500, 600, 700, 800, 900, and 950 — following the same lightness-step convention used by Tailwind CSS color scales.

How are the shades calculated?

Your base HEX color is converted to HSL, then each step reuses the same hue and saturation while setting lightness to a fixed value (from 97% for the 50 step down to 12% for the 950 step).

Can I copy the whole palette as CSS variables?

Yes — click 'Copy as CSS variables' to get a ready-to-paste :root block with --color-50 through --color-950 custom properties.

Why does step 500 not always match my exact input color?

Step 500 is generated at a fixed 50% lightness in HSL, so it will differ slightly from your original HEX value unless that value already sits at exactly 50% lightness.

Can I see the RGB value for each shade?

Yes, each shade row shows its HEX and RGB equivalent, and clicking any swatch or value copies the HEX code to your clipboard.