This tool takes any base colour and generates a full palette from it: tints (progressively lighter), shades (progressively darker), and a 50–900 tonal scale like the ramps in Tailwind CSS or Material Design. It is built for designers and developers who have one brand colour and need a consistent set of lighter and darker variants for backgrounds, borders, hover states and text.
How it works
The base hex is parsed into RGB, then three families are produced:
- Tints linearly interpolate each RGB channel toward white (255) by an increasing factor, so the colour gets lighter step by step.
- Shades interpolate each channel toward black (0), getting darker.
- Tonal scale (50–900) converts the colour to HSL and sweeps the lightness from about 95% down to about 10% while keeping the hue and saturation fixed — which is exactly how design-system colour ramps are built.
All conversions use standard sRGB and HSL maths, so the output is deterministic.
Example
From a base of #3b82f6 (a blue), the generator yields a 50 step near-white blue (around #eff6ff), the base sitting near the 500 step, and a 900 step that is a deep navy (around #1e3a8a) — the same shape as a Tailwind blue ramp. The tints column gives softer pastel blues and the shades column gives muted dark blues.
Click any swatch to copy its hex code. All shades are computed locally in your browser using standard sRGB and HSL maths — nothing is uploaded.