ColorShades Generator

Pick one colour and get eleven evenly spaced steps from very light to very dark, like Tailwind's palettes, with your colour kept exactly. Below the scale are classic tints, shades and tones, and every swatch copies with a click.

  • Free forever
  • No sign-up
  • Runs in your browser

Your scale

Your colour sits at 600. Click any step to copy it.

Used in the code.

Export

/* Tailwind v4: in your CSS. Use bg-brand-500, text-brand-900... */
@theme {
  --color-brand-50: #f1f7ff;
  --color-brand-100: #e0eeff;
  --color-brand-200: #c1ddff;
  --color-brand-300: #98c8ff;
  --color-brand-400: #65abfa;
  --color-brand-500: #3e8ee3;
  --color-brand-600: #2875c5;
  --color-brand-700: #1d61a6;
  --color-brand-800: #19508a;
  --color-brand-900: #174372;
  --color-brand-950: #09294b;
}

Tailwind v4's own colours are written in OKLCH. HEX works everywhere, including older browsers and design apps.

In use

A common way to use a scale.

New this week

Spring workshop dates are out

Background 50, badge 100, border 200, text 700 and 900, button 600 with a 700 hover.

Book a placeSee dates

Tints, shades and tones

Your colour mixed with white, black and grey in 10% steps.

Tints mixed with white

Shades mixed with black

Tones mixed with grey

How to use the Color Shades Generator

  1. 1

    Pick your colour with the picker or paste a hex code.

  2. 2

    Name the scale, like brand or primary, and choose which step your colour sits at.

  3. 3

    Click any swatch to copy its hex code.

  4. 4

    Copy the whole scale as CSS variables, SCSS or a Tailwind config.

Tints, shades and tones

These three words have exact meanings in colour theory:

  • Tint: the colour mixed with white. Lighter and softer, good for backgrounds.
  • Shade: the colour mixed with black. Darker and deeper, good for text and hover states.
  • Tone: the colour mixed with grey. Less saturated and more muted, good for calm, grown-up palettes.

How the 50 to 950 scale works

Tailwind CSS made the 50 to 950 scale popular. 50 is almost white, 500 is a mid colour and 950 is almost black, in eleven steps. Because every colour uses the same steps, blue-600 and rose-600 feel equally strong, which makes a design easier to keep consistent.

This tool builds the scale in OKLCH, a colour space where equal steps look equal to the eye. Mixing with white and black in RGB tends to make light steps chalky and dark steps muddy; working in OKLCH keeps the hue steady and eases the saturation at both ends, much like Tailwind's own palettes. Your exact colour stays at its step, and you can choose which step that is.

Which step to use where

Check text pairs with a contrast checker. As a rough guide, text from 600 up passes on white for most colours, and text at 50 or 100 works on 700 and darker.

  • 50 to 100: page and card backgrounds, badges
  • 200 to 300: borders, dividers, disabled states
  • 400 to 500: icons, illustrations, focus rings
  • 600 to 700: buttons, links and their hover states
  • 800 to 950: headings and body text, dark mode backgrounds

Adding the scale to Tailwind

For Tailwind v4, paste the @theme block into your main CSS file. It creates classes like bg-brand-50 and text-brand-900 with no config file. For Tailwind v3, add the colors object to theme.extend in tailwind.config.js. For plain CSS, the variables go in :root and you use them as var(--brand-500).

Frequently asked questions

What is the difference between a tint, a shade and a tone?

A tint is a colour mixed with white, a shade is mixed with black, and a tone is mixed with grey. Tints get lighter, shades get darker and tones get more muted.

How do I make a lighter or darker version of a colour?

Paste the colour here and pick a step: anything below its step is lighter and anything above is darker. In HSL you can also change only the lightness value.

What do Tailwind's 50 to 950 numbers mean?

They are lightness steps. 50 is the lightest, 500 is the middle and 950 is the darkest. The numbers are the same for every colour, so the scales line up.

Should my brand colour be 500?

Not always. A light colour like yellow fits better at 300 or 400, and a dark navy at 800 or 900. Nearest step puts it where its lightness fits; you can also choose a step.

Why use OKLCH instead of HEX?

OKLCH describes colour the way eyes see it, so steps look even, and Tailwind v4 uses it for its own colours. HEX works everywhere, so you can copy either.

Embed this tool on your site

Want the Color Shades Generator on your own page? Copy the embed code and paste it where you want it to show up.

  • Free to use on your blog or site, with no account.
  • It sizes itself to fit and works on phones.
  • Keep the credit line so readers know where it's from.
your-site.com/blog

Free Color Shades Generator by Hiyaly

Put it allon one link.