Color Mixer

What Is the Color Mixer?

Blend two colors at any ratio and see the steps between them. Mix in sRGB, linear sRGB, OKLab, OKLCH or HSL; the tool uses the same rules as CSS color-mix(), and gives you the matching color-mix() line to paste into a stylesheet.

Why Use This Tool?

Understanding how colors combine is fundamental to palette design. Different color spaces produce different blends. sRGB averages the stored channel values, which tends to give dark, muddy midpoints; OKLab and OKLCH were designed so equal steps look roughly equal to the eye, and OKLCH also keeps chroma up by travelling around the hue circle.

How to Use This Color Mixer

  1. Select two base colors — Pick or paste hex codes for the two colors you want to mix.
  2. Adjust the mix ratio — Use the slider to control the blend — 50% gives you an equal mix, while lower/higher values weight toward one color.
  3. View the result — Pick a color space, then see the mixed color in real time with its hex, RGB and HSL values, plus the intermediate steps.
  4. Copy the mixed color — Click the swatch to copy the hex, or copy the color-mix() line for the same mix. We checked 240 mixes across all five spaces against Chrome's own color-mix(): every one matched within rounding (0.5 of a channel step).

Worked examples: the same mix in five colour spaces

The colour space changes the result more than most people expect. Both examples below were mixed in this tool and, separately, by Chromium's own CSS color-mix() on October 12, 2026; every result matched to the hex digit. Chroma is how colourful the result is (0 is grey).

Blue and yellow, 50/50

SpaceResultOKLCH lightnessOKLCH chroma
sRGB#8080800.6000.000
Linear sRGB#bcbcbc0.7950.000
OKLab#6cabc70.7090.077
OKLCH#00cfbd0.7680.136
HSL#00ff800.8750.234

Opposite colours cancel out in sRGB and linear sRGB and leave grey. OKLab gives a soft desaturated blue, OKLCH keeps the colour by travelling round the hue wheel and lands on a teal, and HSL takes the same route through the greens but keeps full saturation, giving a bright green. If you want something between the two colours that still looks like a colour, use OKLCH; if you want a neutral, sRGB does it.

A hover tint: #0575E6 with 15% white

SpaceResultOKLCH lightnessOKLCH chroma
sRGB#2b8aea0.6280.168
Linear sRGB#6c95ea0.6770.134
OKLab / OKLCH#3f8bec0.6370.164
HSL#2b8ae90.6270.167

For small tints the spaces are close, with one exception: linear sRGB lightens much more and drifts toward violet (#6c95ea), losing about a fifth of the chroma. OKLab and OKLCH agree exactly here because white has no hue. Mixed with 15% black instead, OKLCH gives #035db9 and sRGB #0463c4: the sRGB shade comes out lighter, because sRGB mixing does not follow perceived lightness.

To use a result directly in a stylesheet, Copy CSS gives the matching color-mix() expression; MDN lists color-mix() from Chrome 111, Safari 16.2 and Firefox 113, so for older browsers paste the hex value instead.

Related tools

Frequently Asked Questions

Why does RGB mixing look different from HSL mixing?
RGB mixing averages the red, green and blue values separately, so two saturated colors from opposite sides of the wheel meet in a dull, often darker middle. HSL mixing interpolates hue, saturation and lightness instead, taking the shorter way around the hue circle, so the midpoint keeps more saturation but can pass through hues you didn't expect.
What is OKLCH mixing?
OKLCH is the polar form of OKLab, a color space designed so that equal numeric steps look roughly equal to the eye. Mixing in OKLCH interpolates lightness, chroma and hue (the shorter way around), which gives even-looking, colorful blends. Results can fall outside the sRGB range; this tool then clips each channel to 0–255, as Chrome does when drawing the same color-mix() to a canvas.
Can I use color-mix() in CSS?
Yes. color-mix() is supported in Chrome and Edge 111, Firefox 113 and Safari 16.2 or later (MDN compatibility data), so every current browser handles it. The tool writes the line for you, for example color-mix(in oklch, #FF3366 50%, #0575E6 50%).
How does CSS color-mix() work?+
color-mix(in <space>, color1 p1%, color2 p2%) converts both colors to the named space, interpolates them by the percentages, and gives the result. The percentages are how much of each color goes in: 30% of the second color means 70% of the first. Polar spaces such as OKLCH and HSL take the shorter hue path unless you add a hue method like longer hue.
What color space should I mix colors in?+
OKLCH or OKLab for most design work: blends look even and stay colorful. sRGB matches what older tools and Sass's mix() do, and is useful when you need to reproduce an existing result. Linear sRGB is physically closer to mixing light, so it brightens midpoints. HSL is simple but uneven in perceived lightness.
Why does mixing complementary colors create brown or gray?+
Complementary colors (like red and green) are on opposite sides of the color wheel. Mixing them equally combines all primary channels, which approaches gray or brown — the center of the color space. To avoid muddy mixes, use colors closer together on the wheel or mix with unequal ratios.
How does color mixing work?+
The tool converts both colors into the chosen space, takes a weighted average of their values (with hue handled as an angle), converts back to sRGB and clips anything outside the displayable range. The intermediate steps repeat this at evenly spaced ratios.
What is the difference between additive and subtractive mixing?+
Additive mixing adds light: red and green light together make yellow, and all three primaries make white. Subtractive mixing is what paints and inks do, each absorbing part of the light, so mixing tends toward dark brown or black. This tool does neither exactly: it interpolates between two screen colors (a weighted average), which is what CSS color-mix() and design tools mean by mixing. It will not predict how two paints combine.

📖 Learn More

Related Article The Complete Guide to Color Mixing and Palettes → Related Article How to Mix Colors with CSS →

Built by Derek Giordano · Part of Ultimate Design Tools

Privacy Policy · Terms of Service