Color Palette Visualizer
See your palette as a real interface instead of swatches.
Interpolate an even scale between two or more colours.
The colours appear here
The Color Scale Generator interpolates an evenly spaced scale between two or three colours, in the space you choose, and graphs the lightness curve so the flat spots that make a data scale unreadable are visible.
Give it a start and an end colour and it produces as many evenly spaced steps between them as you ask for. Add a midpoint and you get a diverging scale — the kind a heat map needs, where the middle is neutral and the two directions are opposite.
Where the interpolation happens decides whether the scale is usable. In sRGB the middle of a two-colour scale goes grey and dead; in HSL it swings through hues you never asked for, because the shortest path around the wheel between orange and blue goes through green. OKLab avoids both — it keeps the middle colourful and the steps evenly spaced.
The tool also reports whether the scale is monotonic in lightness, which is the property that makes a sequential scale readable: each step must be measurably lighter or darker than the last, or the scale stops carrying an order and becomes decoration. A lightness graph is drawn alongside the swatches so you can see any flat spots, and the result exports as CSS, as an array, or as a CSS gradient.
Two colours for a simple ramp, three for a scale with a meaningful middle.
OKLab keeps the middle colourful and the steps even. HSL is there for when you actually want a hue sweep.
A flat section means two steps that look identical. The curve shows it before your readers find it.
The tool says whether lightness only ever increases, which is what keeps a scale readable in greyscale and for colour-blind viewers.
CSS custom properties, a JavaScript array, or a ready-made CSS gradient.
A start and an end colour, plus a midpoint for a diverging scale.
Usually between 5 and 11 — more than that and the steps stop being distinguishable.
OKLab for even, colourful steps. HSL when you specifically want a hue sweep.
A flat section means two steps that look the same. Adjust the ends until it climbs steadily.
Sequential for a quantity that runs from low to high. Diverging when the data has a meaningful middle — zero, an average, a target — and you want to show direction as well as magnitude.
Because it is interpolating in sRGB between two colours on opposite sides of the wheel, and the arithmetic midpoint of opposites is grey. Switch to OKLab, or pick a midpoint colour deliberately.
Between five and nine for a discrete scale. Beyond nine, readers cannot reliably match a swatch in the legend to a patch on the chart, and a continuous scale with axis labels serves better.
That lightness only ever increases along the scale. It matters because it is what keeps the scale readable in greyscale, in print, and for anyone with a colour vision deficiency.
What people who use the Color Scale Generator think of it. Reviews come from visitors and are posted as written.
No ratings yet
Yours would be the first.
0 reviews
Newest first
No reviews yet
Be the first to rate the Color Scale Generator. It takes half a minute and no account.
Write the first reviewSee your palette as a real interface instead of swatches.
Convert colour temperature in kelvin to an RGB colour.
Nudge a colour until it passes WCAG, keeping its hue.
Convert HEX colour codes to RGB and HSL, and back again.
Build CSS linear and radial gradients visually and copy the code.
Convert a HEX colour to the integer forms Android, Java and Unity want.
Convert LCH to HEX and RGB — LAB in polar form, as CSS uses it.
Generate matching light and dark themes from one colour.