Blend colours the way you want: pick two or more, slide the ratio, and get the exact mix in HEX, RGB and HSL. Choose perceptual OKLab or saturation-keeping OKLCH mixing for clean midpoints, or sRGB to match CSS — then copy a whole scale of steps between them as CSS variables, Tailwind or JSON.
| Space | Best for |
|---|---|
| OKLab | Even-looking blends and scales |
| OKLCH | Vivid blends between distant hues |
| sRGB | Matching CSS gradients and color-mix(in srgb) |
| Linear RGB | Simulating mixed light |
#808080 in sRGB. In OKLab it is a darker grey that looks halfway between to the eye.
Opposite hues meet near grey in any straight-line mix. Choose OKLCH to go round the colour wheel and keep saturation.
Yes, up to six; the slider moves along all of them in order.
Copy the color-mix() expression, or export the steps as variables.
No, it all runs in your browser.
Each colour is mixed channel by channel at the chosen ratio, in one of three spaces: - **OKLab:** a perceptual colour space. Mixes are interpolated in L, a and b and converted back to sRGB, so steps look evenly spaced and avoid the dark, muddy middle of sRGB mixes. - **OKLCH:** interpolates lightness, chroma and hue, taking the shorter way round the hue wheel. Opposite colours such as blue and yellow pass through teal and green instead of grey. - **sRGB:** interpolates the gamma-encoded values directly. This matches CSS gradients and color-mix(in srgb). - **Linear RGB:** undoes the sRGB gamma first, which matches how coloured light adds up. With more than two colours, the position is spread across the segments between them. The step strip samples evenly spaced positions, ends included. Results are rounded to whole 8-bit channels and shown as HEX, RGB and HSL, with an equivalent CSS color-mix() expression for two colours.