Tint & Shade Generator
Generate tints, shades and tones of a base colour in even steps — mixed in OKLab or sRGB — with hex codes, lightness, contrast on white and CSS variables.
A ladder of lighter and darker versions of one colour, each with its hex code and contrast on white, plus a CSS custom-property block to paste into a theme.
Example: Teal #1f7a8c, 5 steps to 90 % in OKLab: the tints climb evenly to a near-white, the shades descend to a near-black, and the tones fade toward grey; 31 CSS variables are ready to copy.
Lighter, darker,
duller — in even steps.
What a tint, a shade and a tone are, why the mixing space matters, and what the numbers beside each swatch mean.
Tint, shade, tone
The painter's definitions: a tint is the base colour mixed with white, a shade the base mixed with black, and a tone the base mixed with grey. Each row here mixes the base toward that target in n equal steps, the last step reaching the “max mix” you set (90 % keeps the ends short of pure white and black; 100 % reaches them). The mixing amount is the same as CSS color-mix() would use, so a step can be reproduced in a stylesheet directly.
OKLab or sRGB
Mixing the raw sRGB channel values — what most older palette tools do — produces steps that look uneven: the first tints jump in brightness and the middle shades bunch up, and saturated colours pass through muddy greys. OKLab is a perceptual space defined in CSS Color Module Level 4 in which equal numeric steps look like equal visual steps, so OKLab mixing is the default here. The sRGB option is kept for matching an existing palette that was built that way. Results are rounded to whole 8-bit channels after mixing.
The numbers, and the CSS block
Each swatch shows its hex code, its OKLCH lightness L (0 black to 1 white) and its WCAG 2 contrast ratio against white; body text on a white page needs 4.5 : 1, so the ratio tells you at a glance which shades can carry text. The CSS variables block names the steps --tint-1, --shade-1, --tone-1 and so on in order of increasing mix. Nothing leaves the browser; the same four anonymous usage counts as the rest of the site apply.
SOURCES
- CSS Color Module Level 4 (W3C) — OKLab definition and color-mix() interpolation
- WCAG 2.1, relative luminance and contrast ratio (success criterion 1.4.3)
Last reviewed 19 September 2026. How results are checked: How we verify.