Colour Shade, Tint and Harmony Scheme Generator
Enter a hex colour, the number of steps, a harmony type and a CSS prefix, and get a shade scale with contrast ratios, harmony colours and CSS variables.
Runs in your browser. Your files never leave your device. See how to check
…
How to do it
- 1Enter a colour
Hex code.
- 2Choose steps
Usually 9.
- 3Pick a harmony
Complementary, analogous and more.
- 4Check contrast
On white and black.
- 5Copy CSS
Custom properties.
About this tool
Design systems need more than one brand colour: they need a scale of lighter tints for backgrounds and darker shades for text and borders, all clearly related. They also need to know which shades are readable on white or black. This generator builds a scale from 100 to 900 around your colour, shows each step's WCAG contrast ratio on white and on black, suggests complementary, analogous, triadic, split-complementary or tetradic colours, names the nearest common colour and writes CSS custom properties ready to paste.
Who this is for
Web and app designers, front-end developers building design systems, and brand designers.
Tints and shades
Tints mix the colour with white; shades mix it with black. The scale runs from very light (100) through your base (in the middle) to very dark (900). Lighter steps suit backgrounds and borders; darker steps suit text and hover states.
Contrast
WCAG 2.2 requires a contrast ratio of at least 4.5:1 for body text and 3:1 for large text and interface components (level AA). The table shows each step's ratio against white and black so you can pick accessible pairs.
Harmonies
Harmonies rotate the hue on the colour wheel while keeping saturation and lightness: complementary (180°), analogous (±30°), triadic (120°, 240°), split complementary (150°, 210°) and tetradic (90°, 180°, 270°).
A worked example
Base #2563eb is close to royal blue, with a 5.17:1 contrast on white, passing AA for body text. The scale runs from #f4f7fe to #060f23; the analogous harmony adds #25c6eb and #4a25eb.
Using the CSS
Copy the variables into your stylesheet, for example --brand-500: #2563eb, and reference them throughout. Changing one base colour updates the whole system.
## Naming the steps Most design systems use 50 or 100 for the lightest step and 900 or 950 for the darkest, with the brand colour near 500 or 600. Keep the same numbering across every colour family so a designer can swap blue-600 for green-600 and keep similar contrast.
Pairing text and backgrounds
A dependable pattern is a light tint (100) for backgrounds, a mid step (500 or 600) for buttons with white text, and a dark shade (800 or 900) for headings on light backgrounds. Check every pair you actually use, including hover and disabled states, against the WCAG thresholds.
Dark mode
In dark themes, swap the scale: dark shades become surfaces and lighter tints become text and accents. Saturated colours can look harsh on dark backgrounds, so use slightly lighter, softer steps.
## Entering colours Type six-digit hex such as #2563eb or the three-digit shorthand such as #36f. Choose 5 to 11 steps; nine gives the familiar 100 to 900 scale. Change the prefix to match your naming, such as brand or accent.
Limits
Mixing in sRGB is simple and predictable; perceptual colour spaces such as OKLCH give more even steps. Always test colours on real screens. General guidance, not a certification.
Worked example
#2563eb has 5.17:1 contrast on white and passes WCAG AA for body text.
Quick facts
- Category: Audio, Video & Design
- Works in your browser, no sign-up, no upload.
- Your input stays on your device.
- Available in English.
- Content last reviewed:
- Official source: WCAG 2.2 contrast ratio; sRGB colour model; HSL hue rotation for harmonies
Frequently asked questions
What is the difference between a tint and a shade?
A tint adds white; a shade adds black.
What contrast ratio do I need?
4.5:1 for body text and 3:1 for large text under WCAG AA.
What is an analogous palette?
Colours next to each other on the wheel, about 30° apart.
How do I use the CSS?
Paste the custom properties and reference them in your styles.
Does it name my colour?
It shows the nearest common CSS colour name.
Is my data stored?
No. It stays in your browser.
