Color Mixer
Mix two colors in any ratio and see the result in both OKLab (natural-looking) and sRGB, with every CSS format.
Mixed in OKLab (perceptual)
-
hex
-
rgb
-
hsl
-
hwb
-
oklch
-
cmyk
Mixed in sRGB (like paint software)
-
hex
-
rgb
-
hsl
-
hwb
-
oklch
-
cmyk
Runs in your browser. What you enter is kept for 30 days to improve Toolgrid, then deleted.
How to use the Color Mixer
- 1 Choose the first and the second color.
- 2 Drag the slider to set the share of the second color.
- 3 Copy the mixed color from the OKLab or sRGB result.
About the Color Mixer
Mixing averages two colors. In sRGB the red, green and blue values are averaged, which is what most design software does; mixing blue and yellow that way gives a grayish color in the middle.
OKLab is a color space designed to match how we see color. Mixing there keeps the result vivid and evenly bright, which is why CSS color-mix() and modern gradients can use it.
This is digital light mixing, not paint mixing: blue and yellow do not make green as they would with pigments.
Frequently asked questions
Which result should I use?
OKLab usually looks more natural; sRGB matches older tools and simple CSS blending.
Why don’t blue and yellow make green?
Screens mix light, not pigment. Paint mixing is subtractive and works differently.
Can I mix colors with transparency?
Yes, the alpha values are mixed too.
What is the CSS equivalent?
color-mix(in oklab, color1, color2 50%) in modern browsers.