Blending colours
Choose the first and second colours
Type HEX,
rgb(),hsl()or a CSS name, or use the pickers. A green and a gold are loaded to start.Set the proportion
The slider sets how much of the second colour goes in, from 0% to 100%. The middle swatch is labelled with the split, such as Mix 70/30.
Copy the result
Copy the blend as HEX or RGB.
Use the steps
The row of nine swatches runs evenly from the first colour to the second. Click any to copy it.
Example: a softer navy for a pricing table
A web designer working on a site for a removals firm has the brand navy #0B3D91 and a warm gold #F2C14E. Navy header rows feel heavy, so she tries mixing in 30% of the gold.
The blend is #50657D, rgb(80, 101, 125), a muted slate blue that still sits comfortably with both brand colours and works for table headers with white text after a quick contrast check.
First #0B3D91, second #F2C14E, 30% of the second
Mix 70/30: #50657D, rgb(80, 101, 125)
Screen mixing versus paint
The mixer blends light as a screen does, channel by channel in sRGB, the same as CSS color-mix(in srgb, ...). That is not how paint behaves.
| Pair | On screen (this tool) | In paint |
|---|---|---|
| Blue and yellow | A grey | A green |
| Red and white | A pink | A pink |
| Two brand colours | An in-between shade for digital use | Ask your printer or sign maker |
Good uses for mixed colours
Charts with several series look tidier when the colours come from one family. Taking steps between two brand colours gives a set that belongs together. Mixing a colour with white produces a light background tint for callouts and table stripes, and mixing with a dark grey gives a hover state that is less harsh than adding black.
Questions people ask
How do I mix two colours in CSS?
Modern browsers support color-mix(in srgb, #0B3D91 70%, #F2C14E 30%), which blends the same way this tool does. For older browsers, use the HEX code the mixer gives you as a fixed value, which works everywhere.
Why does mixing blue and yellow not give green?
Screens add light. Halfway between a blue and a yellow in red, green and blue values is a greyish colour, not green. Paint works by absorbing light, which is why blue and yellow paint make green. This mixer follows the screen behaviour.
What are the nine steps for?
They divide the range from the first colour to the second into equal parts, including both ends. Use them for chart series, progress states or a set of tags that need related but distinct colours. Click any swatch to copy its HEX code.
Where your data goes
Mixing is calculated in your browser. The colours you choose are not sent or stored.
Checked against the tool on