Color Mixer

Blend two or more colors with weights and see the result and the steps in between.

Color Mixer tool

HEX
RGB
HSL
CSS color-mix()

Blend steps from color 1 to color 2

About the Color Mixer

Mixing colors on screen is not quite like mixing paint, and the method changes the result: averaging RGB values can produce muddy in-between colors, while a perceptual space such as OKLab gives smoother blends. This color mixer blends up to six colors with weights you set, in RGB, linear light or OKLab, and shows the mixed color with its codes plus a row of blend steps between the first two colors.

Colors can be mixed in three ways. RGB averages the color values as stored on screen, which matches most graphics programs and the srgb option of CSS color-mix(). Linear light averages the actual light intensities, which is how overlapping lights and blurred pixels really combine, and gives brighter mixes. OKLab mixes in a perceptual space, which keeps the midpoint looking like a natural halfway color without the muddy or gray zones of plain RGB.

When you mix exactly two colors, the tool also writes the matching CSS color-mix() expression, so modern browsers can blend the colors for you directly in a stylesheet. Note that screen mixing adds light, so blue and yellow make gray rather than the green you would get from paint; pigments mix by absorbing light, which follows different rules.

To create lighter and darker versions of one color, use the color shades generator. For smooth transitions in CSS, try the gradient generator, and to convert the result into other formats, the color converter.

How to use the Color Mixer

  1. Choose the colorsPick the first two colors, and add more if you need them.
  2. Set the weightsMove each weight slider; the share of each color is shown as a percentage.
  3. Pick the mixing spaceChoose RGB, linear light or OKLab to change how colors combine.
  4. Copy the resultCopy the HEX, RGB or HSL code, or the CSS color-mix() expression.

Color Mixer features

  • Mix up to six colors
  • Weight slider for each color
  • RGB, linear light and OKLab mixing
  • Blend steps between the first two colors
  • HEX, RGB and HSL results
  • CSS color-mix() expression
  • Click any step to copy it
  • Runs in your browser

Common uses

  • Finding a color halfway between two brand colors
  • Creating hover and border colors by mixing with white or black
  • Previewing CSS color-mix() results
  • Blending colors for charts and illustrations
  • Teaching how light and color mixing work

Mixing colours in practice: tints for backgrounds, CSS colour-mix for hover states, flattening transparency, legend steps and toning down bright colours

By the FreeToolsWorld editorial team · Updated November 2026 · How we write and check our guides

Mixing two colours digitally is how designers make tints, shades, tones, hover states and in-between steps for charts. Modern CSS can even mix colours on the fly. This guide mixes a brand navy with white for a background tint and covers dynamic hover colours, flattening transparent colours for email, building legend steps and calming overly bright colours.

A worked example: a background tint

A school website's navy, #1E3A8A, is too strong for large section backgrounds. Mixing 10 percent navy with 90 percent white in sRGB gives about #E8EBF3, a pale blue-grey that clearly belongs to the brand. Using this tint behind testimonials or notices adds colour without overwhelming text, and dark navy text on it remains very readable.

Hover states with color-mix

CSS can mix colours directly, so hover states can be derived from a brand variable: color-mix(in oklab, var(--brand) 85%, black) darkens the brand colour slightly. If the brand colour changes, every hover state updates automatically. Mixing in OKLab keeps the hue more faithful than mixing in plain sRGB.

Flattening transparency

Some email clients and older tools ignore transparent colours. A semi-transparent colour over a known background can be replaced by the solid result of mixing the two in the same proportion. A 20 percent navy overlay on white becomes a solid light blue that looks identical, and works everywhere.

Steps for a legend

Charts and maps that show ranges need evenly spaced colours between a light and a dark end. Mixing the two ends at 0, 25, 50, 75 and 100 percent gives five steps for a legend. Mixing in a perceptual colour space produces steps that look evenly spaced, avoiding a muddy middle.

Toning down bright colours

Mixing a colour with grey lowers its saturation without changing its lightness much, producing a tone. This calms colours that look harsh on screen, such as pure reds and greens, making them more comfortable for large areas while keeping their character.

Light versus paint

Digital mixing combines light, so mixing in sRGB behaves differently from mixing paints. That is why blending blue and yellow on screen does not give the green a painter expects. For digital work, think in terms of the colour spaces the tool offers, and choose the one whose result looks right for your purpose.

Mixing more than two colours

When combining several colours, mix two first, then mix the result with the next, adjusting weights as you go. Writing down each step and its weights makes the final colour reproducible, which matters when the mixed colour becomes part of a brand.

Recording the result

Once a mixed colour looks right, record its final HEX value and the mix that produced it. Future designers can reuse the value directly, and the recipe explains its origin if the brand colour changes and the mix needs to be repeated.

Common mistakes

  • Mixing in sRGB and accepting grey, muddy midpoints.
  • Using transparency where some clients cannot display it.
  • Creating legend steps by eye instead of by even mixing.
  • Losing track of how a mixed colour was made.

Related tools

To produce a full scale from one colour, use Color Shades Generator. To blend colours across an area, try CSS Gradient Generator, and to express the result in other formats, Color Converter.

Subtle borders that adapt

Mixing the text colour into the background at around 15 to 20 percent produces a border colour that always relates to its surroundings. With color-mix in CSS, the same rule works in light and dark themes, because the mix follows whichever colours are active.

Theming from one colour

A whole set of brand variations, including hover, pressed, background tint and border, can be derived from a single brand variable using color-mix with white, black or the background. Changing that one variable rethemes the site, which is ideal for products that offer each client their own colour.

Browser support

The color-mix function is supported by current versions of all major browsers, having arrived in 2023. Visitors with much older browsers ignore it, so declare a fixed fallback colour first and the mixed colour after it, ensuring every visitor sees something sensible.

Check contrast after mixing

Mixed colours drift in lightness, so a tint that looked fine as a background may be too dark for black text, or a darkened hover colour too dark for its label. Run any mixed colour used with text through a contrast checker before adopting it.

Teaching colour mixing

Comparing digital mixing with paint mixing makes a memorable lesson. Students predict the result of mixing two colours, check it here in different colour spaces, then try the same mix with paints. Discussing why the results differ introduces additive and subtractive colour in a hands-on way.

Matching a mix across tools

Different tools may mix in different colour spaces by default, so the same 50 percent mix can look slightly different in a design app and in CSS. Note which space you used and apply the same one everywhere, or simply copy the final HEX value into each tool.

Privacy

Mixing runs in your browser. Nothing is uploaded or stored.

Frequently asked questions

Why does blue and yellow make gray instead of green?

Screens mix light, which is additive: blue and yellow light together cover most of the spectrum and look gray or white. Paint mixes pigments, which subtract light, so blue and yellow paint make green. This tool mixes the way screens and CSS do.

Which mixing space should I use?

RGB matches most design tools and CSS color-mix() in srgb. OKLab gives the most natural looking midpoints and is a good default for design work. Linear light is physically accurate for light and gives brighter results.

How do the weights work?

Each color's weight is divided by the total of all weights, so the shares always add up to 100 percent. Two colors at 50 each mix half and half, and 75 and 25 give a three-to-one mix.

What is CSS color-mix()?

A CSS function that mixes two colors in the browser, for example color-mix(in oklab, red 60%, blue). It is supported by all current browsers and is handy for hover states and theme colors.

Can I mix more than two colors?

Yes. Add up to six colors with their own weights. The CSS color-mix() expression is only shown for two colors, because the function mixes two colors at a time.

Can I copy the blend steps?

Yes. Click any swatch in the row of steps to copy its HEX code, and change the number of steps to get a finer or coarser transition between the first two colors.

Is anything uploaded?

No. The mixing is calculated by code running in this page on your own device. Nothing is sent to a server or stored. You can safely use it with unreleased brand colors.

Why does the RGB midpoint look darker or grayer?

Averaging gamma-encoded RGB values passes through darker, less saturated colors, especially between complementary colors such as blue and orange. OKLab and linear light avoid much of that dip, which is why they often look more natural.