Mixer

Color Mixer

Details

How to use Color Mixer

What the tool does, how to run it, and what to expect from the result.

How to mix two colours

Mixing two colours produces a blend somewhere on the line between them, which is what you need for a hover state, a midpoint in a scale, or a tint of a brand colour. The blend here is a straight interpolation of the red, green, and blue channels.

The mix happens in your browser. Remember that this is light mixing rather than pigment mixing, so the results follow the rules of a screen, not of a paint box.

  • Enter the two colours you want to blend.
  • Set the ratio, where 50% gives the exact arithmetic midpoint of the two.
  • Copy the resulting hex or rgb value.
  • Mix with white for a tint or with black for a shade, which is the basis of most light and dark UI variants.
  • Use CSS color-mix(in oklab, ...) instead if the mix is for a stylesheet, since it blends perceptually and keeps the source colours as the single source of truth.
Tips

Getting a better result out of Color Mixer

Specific settings and thresholds, not general advice.

  • This mixes light, not paint. Blue and yellow give you grey, not green, because the channels are averaged rather than combined the way pigments subtract wavelengths. Anyone expecting the result they learned in a school art class will be surprised, and the surprise is correct.
  • The interpolation happens in gamma-encoded sRGB, which makes midpoints darker and less saturated than a physically correct mix would be. This is the same reason a cross-fade between two saturated colours passes through a muddy region rather than a vivid one.
  • CSS can now do this natively. color-mix(in oklab, red 50%, blue) is supported in every major browser since 2023, and it mixes in a perceptual space, so the midpoint stays vivid rather than going grey. If the mix is for a stylesheet, you may not need to precompute it at all.
  • The mix ratio is a straight linear blend, so 50% is the exact arithmetic midpoint of each channel. That is a mathematically clean operation and it is not the same as what the eye considers halfway between two colours.
  • Mixing a colour with white is a tint and mixing it with black is a shade, which is the mechanism behind most light and dark UI variants. Both desaturate as they go, which is why a tinted brand colour looks chalky rather than pastel.
Limits

What Color Mixer does not do

The honest boundary, so you do not lose time finding it yourself.

  • It mixes exactly two colours, so a three-way blend has to be done in stages.
  • It interpolates in gamma-encoded sRGB rather than a perceptual space, so the midpoint of two saturated colours is duller than it should be.
  • It has no alpha channel, so it cannot model compositing a translucent colour over a background.
  • It does not output oklch or lab, which is where a modern palette should be defined.
At a glance

Who Color Mixer is for

A quick way to understand who this helps, what it solves, and where it connects next.

Best fit

Designers, frontend developers, and anyone working with color.

Ideal for

Quick color work without opening a heavier design tool.

FAQ

Common questions

Short answers for the questions people usually have before trying a utility like this.

Is the color mixer free?

Yes. It is completely free to use, with no signup, no account, and no paywall.

Do I need to install anything?

No. It runs in any modern browser on desktop or mobile, with nothing to download and nothing to configure.

Does it stay local?

Yes. All the color math runs entirely in your browser, and nothing is sent to a server.

Why does blue plus yellow give grey instead of green?

Because this is additive colour mixing, the way light behaves, not subtractive mixing, the way pigment behaves. Blue is roughly rgb(0, 0, 255) and yellow is rgb(255, 255, 0), and averaging them channel by channel gives rgb(128, 128, 128), which is grey. Paint makes green from blue and yellow because each pigment absorbs part of the spectrum and what survives both is the green band. Screens emit light rather than absorbing it, so they follow the other rule, and every colour mixer that works on RGB values will give you grey.

Why does the midpoint of my mix look muddy?

Because the blend runs in gamma-encoded sRGB. The numbers in a hex colour are not proportional to physical light, so averaging them produces a result that is darker and less saturated than a physically correct mix. The fix is to interpolate in a space designed for it. CSS's color-mix(in oklab, ...) does exactly this, and the difference on a saturated pair is immediately visible: the perceptual mix stays vivid where the sRGB one goes grey.

Can I do this in CSS directly?

Yes, and you probably should. color-mix() has been supported in every major browser since 2023, and it takes a colour space as its first argument, so color-mix(in oklab, var(--brand) 60%, white) computes the blend at render time in a perceptual space. That keeps the two source colours as the single source of truth, so changing your brand colour updates every derived shade automatically, rather than leaving you with a set of precomputed hex values that no longer match.

What is the difference between a tint, a shade, and a tone?

A tint is the colour mixed with white, a shade is the colour mixed with black, and a tone is the colour mixed with grey. All three are what this mixer produces if you choose the second colour accordingly. The thing to be aware of is that all three desaturate as they move away from the base in sRGB, so a tint tends toward chalky and a shade tends toward muddy, which is why perceptual colour spaces are worth the trouble for a real palette.

Does the mixing happen in my browser?

Yes. It is arithmetic on six numbers, performed locally, with nothing transmitted.

Recommendations

You Might Also Like

Nearby tools from the catalog that fit the same job or workflow.

Cleanor app

Do it all on your device

Cleanor puts these tools in one app: compress and convert images, video, and audio, work with PDFs, and scan text right on your device. Plus free up storage and clear inbox clutter with Email Cleaner. Start with a free trial.

  • iPhone
  • Android
  • Macsoon
  • Windowssoon