Color Shades Generator

Lightest shade—
Base colour—
Darkest shade—
Number of shades—

How Color Shades Generator is calculated: Shade i of N = base colour × (1 − i ÷ (N + 1)), channel by channel; the lightest shade is i = 1 and the darkest is i = N.

What is a color shades generator?

A color shades generator generates the shades of a colour — the steps from the colour towards black — in as many steps as you choose. Enter a base hex colour and the number of shades, and it gives you the answer at once.

People use it for far more than curiosity. Designers use it for colour schemes, because a scheme is rarely one colour — it is a scale, and the shades are the darker steps of the scale. Anyone who has ever needed a darker version of a brand colour for a hover state or a shadow has needed a shades generator.

The converter runs in your browser and never sends anything anywhere. There is no reason for a simple conversion to collect personal information. Type the value, read the answer, and close the page — nothing is stored.

The answer is immediate and exact — there is no rounding in a time conversion, and the same input always gives the same answer. That is the difference between a converter and a calculator: nothing is estimated, and nothing is close enough.

How colour shades works

A shade is a colour mixed with black. The lightest shade is the base colour mixed with a little black, and the darkest is the base colour mixed with a lot — and the steps between them are equal. With five steps, the shades are at one sixth, two sixths, three sixths, four sixths, and five sixths of the way to black.

The lightest shade is the main figure: #1F53C4 for the default. The darkest shade is the other end of the scale, and the full list shows every step between them, so you can pick the one that fits.

The number of steps sets the granularity. Two steps give a light shade and a dark shade; ten steps give a fine scale from the colour to near-black. The base colour itself is not one of the shades — the shades are the steps after it, towards black — so the scale always runs from the colour to the dark.

The whole conversion is a few lines of arithmetic, and it runs in your browser, which is why the answer appears as you type. There is no server, no lookup table, and no database — just the rules of the two systems, applied to your input.

Steps — the input that changes the answer

The number of steps is the most important input. Five steps give five shades, and ten give ten — and the shades themselves change, because the steps are equal divisions of the way to black. A shade at one sixth of the way to black is not the same as a shade at one eleventh, even though both are the lightest step.

The second input trap is the base colour. A shade of a pale colour is pale, and a shade of a dark colour is dark — and the same number of steps gives a different scale for each. The generator works from whatever colour you enter, so the scale is always relative to the base.

The third trap is the black. The darkest shade is never pure black — with five steps, the darkest shade is one sixth of the way from black, not black itself. If you need pure black, that is a colour, not a shade, and the generator does not give it.

The calculator checks the input as you type. A value that cannot be read — a missing marker, a minute above 59, a day that does not exist — is rejected with a message, instead of being guessed at. A converter that guesses is worse than one that says it does not know.

A worked example

First, the default on this page. #2563EB with five steps: the shades are #1F53C4, #19429D, #133276, #0C214E, and #061027. The lightest is #1F53C4 — a blue a little darker than the base — and the darkest is #061027, a blue so dark it is almost black.

Second, red with three steps: #FF0000 gives #BF0000, #800000, and #400000. The steps are at a quarter, a half, and three quarters of the way to black — and the middle shade, #800000, is the dark red called maroon.

Third, white with four steps: #FFFFFF gives #CCCCCC, #999999, #666666, and #333333. The shades of white are the greys — a light grey, a mid grey, a dark grey, and a very dark grey — which is the simplest scale there is.

Every example above uses the same rules, and you can check each one by hand. The arithmetic is short enough to do on paper, which is the point — a converter you can verify is a converter you can trust.

Why it matters, and who uses it

Designers use it for themes. A theme is often a scale from a brand colour to black, and the shades are the steps — which is how a button, a hover state, and a shadow are all built from one colour. The generator gives the steps, and the designer picks the ones that work.

Developers use it for dark mode. A dark theme is a set of shades, not a set of colours — and the shades of a brand colour are the colours of the dark theme. The generator gives the scale, and the theme is built from it.

Then there is the plain usefulness of an exact answer. Knowing that the shades of #2563EB run from #1F53C4 to #061027 — and that the shades of white are the greys — is a small piece of knowledge that turns one colour into a scale, and it is exact, not an estimate.

The answer is also easy to check, which is the point of showing the working. Pick a value you know — midnight, noon, half an hour — and the figures should match what you remember. If they do, the converter is working.

Color Shades Generator vs color palette generator

These two tools answer different questions. A color palette generator builds a whole palette from one colour — complementary, analogous, triadic, and more — a set of colours that go together. This generator builds the shades of one colour — the steps from the colour towards black — a single scale, not a palette. The difference is what you get: a palette of different colours, or a scale of one colour. If the question is 'what colours go with this blue', the color palette generator is the tool; if the question is 'what are the darker versions of this blue', this is the tool.

If the question is 'what are the darker versions of this blue', use this converter. If the question is 'what colours go with this blue', use the color palette generator instead. Use this generator for shades and the color palette generator for palettes. If the question is what a colour looks like, a color picker shows it on screen.

Both are the same kind of tool — a value in, a value out, worked out in your browser. A color picker shows any colour on screen and gives its hex code, which is the tool to use when you want to see the colour rather than shade it. And a gradient generator builds a gradient between two colours, which is the tool to use when the scale is between two colours rather than towards black.

The two tools share the same idea: a value in, a value out, worked out in your browser. The difference is only in what is being converted, and in which direction the answer points.

Common mistakes

The first mistake is the base colour. The shades are the steps after the base colour, towards black — the base itself is not one of the shades, and the lightest shade is already darker than the base.

Second: the steps. The shades are equal divisions of the way to black, so changing the number of steps changes every shade — a lightest shade at one sixth is not the same as one at one eleventh. Third: the darkest shade is never pure black, whatever the number of steps.

Fourth: the names. A shade of red is not a different colour — it is the same red, darker — and the hex code is the colour, not the name. The generator gives the hex codes, and the codes are the facts.

The mistakes above are the ones people actually make, and they are all small. A converter that shows its working lets you catch them before they matter, which is the whole reason for using one.

How to use this color shades generator

Using it takes seconds. Enter a base hex colour and the number of shades — the default is #2563EB with five steps. The results update live: the lightest shade, the base colour, the darkest shade, and the number of shades, with the full scale shown below. The results update live as you type.

The lightest shade is the main figure: #1F53C4 for the default. The darkest shade is the other end of the scale, and the full list shows every step between them, so you can pick the one that fits.

Everything runs in your browser, so nothing you enter leaves your device. One practical tip: use the shades for hover states and shadows. A button in the base colour, a hover state one shade darker, and a shadow two shades darker — all from the same scale, and all from one colour.

Everything runs in your browser, so nothing you enter leaves your device, and the answer is the same every time you enter the same value. There is nothing to save, nothing to sign up for, and nothing to wait for.

Frequently Asked Questions

With five steps: #1F53C4, #19429D, #133276, #0C214E, and #061027. The lightest is #1F53C4, a blue a little darker than the base, and the darkest is #061027, a blue so dark it is almost black.

A shade is a colour mixed with black — darker. A tint is a colour mixed with white — lighter. The shades of red run from #BF0000 to #400000, while the tints run from #FF8080 to #FFBFBF.

Because the shades are equal divisions of the way to black, and the last step is always one step short of it. With five steps, the darkest shade is one sixth of the way from black — #061027 for #2563EB. Pure black is a colour, not a shade.

Five is a good default: enough steps to see the scale, and few enough to choose from. Two steps give a light and a dark shade; ten give a fine scale. The number of steps changes every shade, because the steps are equal divisions.

More free tools

More calculators and utilities from Sortrun — free, no sign-up.