Huewell

Color mixer

Choose two colours and how much of each to use. See the blend three ways, plus every step in between.

Click any swatch to copy its hex code.

Three ways to mix colours on a screen

  • OKLab (perceptual) blends lightness and colour the way people see them. The halfway point really looks halfway, and mixes between strong colours stay clean. This is the best choice for UI design and colour scales.
  • sRGB averages the red, green and blue numbers. It is what most apps and CSS's default color-mix() without a colour space do. Mixes between opposite colours can look grey and dull.
  • Linear light averages the actual light energy, like overlapping two beams or a fine pattern of two colours seen from far away. Mixes come out lighter than you might expect.

None of these is how paint mixes. Paint absorbs light, so blue and yellow paint make green, while blue and yellow light make a pale grey or white. On screens you are always mixing light.

Mixing colours in CSS

Modern browsers can do this for you with color-mix(), for example color-mix(in oklab, #0047AB 50%, #FFD700). Use the OKLab result here to preview what that will look like.

Questions

What colour do blue and yellow make?

In paint, green. On screen, blending blue and yellow light gives a greyish or pinkish neutral depending on the method, which the three results above show.

How do I mix colours in CSS?

Use color-mix(in oklab, colourA 50%, colourB). Change the percentage to change the balance.

Which mixing method should I use?

OKLab for design work, because it gives even, natural-looking steps. sRGB matches older tools and default browser behaviour.

More colour tools

Palette generatorPress Space for balanced colour schemes, lock the ones you like.Colour converterHEX, RGB, HSL, HSV, CMYK and OKLCH in one go.Contrast checkerWCAG 2.2 AA/AAA and APCA, with fixes that pass.Image colour pickerPick colours and the main palette from any photo.CSS gradient generatorLinear, radial and conic gradients with CSS code.Tints & shadesLighter and darker versions, plus a 50–950 scale.Colour blindness simulatorSee palettes and images as people with CVD do.Colour name finderName any colour from nearly 1,000 names.Colour harmonyComplementary, triadic, analogous and more.