At One Place

Colour shades and gradient generator

Build a tint and shade scale from one colour, or a gradient between two.

How it works

Generates a tint and shade scale from a base colour, or a smooth gradient between two, with CSS output.

Interpolation happens in a perceptually uniform space rather than in RGB, and the difference is visible. Blending between blue and yellow in RGB passes through a muddy grey, because the midpoint of two opposing hues in RGB is desaturated. Interpolating hue directly keeps saturation through the transition.

A tint scale built by simply lightening tends to look washed out at the pale end, because perceived lightness does not track the L value linearly. The scale here adjusts saturation as lightness rises, which is what keeps pale steps looking like the same colour rather than like grey.

Every step reports its contrast against black and white, so you can see at a glance which steps are usable for text.

This tool runs entirely in your browser. Nothing you enter is sent to a server, logged or stored, and the page keeps working with the network disconnected.

Common questions

Why does my gradient look muddy in the middle?
Because it is interpolating in RGB, where the midpoint between opposing hues is desaturated. Interpolating hue instead keeps the colour through the transition.
What is the difference between a tint and a shade?
A tint is the colour mixed toward white, a shade toward black. A tone is mixed toward grey.

Related pages

Sources

  1. Calculated on this page — At One Place

How these figures are compiled and checked