Color mixer

Mix two to four colors to see what they make. As paint, blue and yellow make green and red and blue make purple. On screen the same colors blend differently, and you get the CSS color-mix() code.

Mix as

Paint mode is an approximation: it treats each color as a pigment with a typical reflectance curve; real paints of the same color can mix quite differently depending on the pigments, the brand and how much white or medium they contain.

From color 1 to color 2

Mixing steps

    How to use the color mixer

    1. Choose Paint (subtractive) to see what mixing the colors as paint would give, or Light / screen (CSS color-mix) to blend them the way a browser does.
    2. Type each color in any CSS format, such as #0000ff, rgb(255 255 0) or teal, or click its swatch to use your system color picker.
    3. Move each Amount slider, or type a percentage, to set how much of that color goes in. Add color mixes up to four colors, and Swap first two reverses colors 1 and 2.
    4. In screen mode, pick the Color space (and the hue path for OKLCH), then copy the color-mix() CSS.
    5. Read the result's HEX, RGB, HSL and OKLCH values, check the strip and the 10% to 90% steps, and use Copy link to share the mix.

    Three ways colors mix

    “Mixing” means three different things, and they give different answers for the same two colors.

    Color mixing chart: what two colors make

    Each pair below is mixed 50/50 with this tool: as paint, and on screen with color-mix(in oklab, …). A name in brackets means the result is within a deltaE OK of 0.02 of that CSS named color.

    ColorsPaint makesPaintScreen (OKLab 50/50)
    red + yelloworange-red#FF4615 (close to orangered)#FFA000 (close to orange)
    blue + yellowgreen#398F54 (close to seagreen)#6CABC7
    red + bluedark red-purple#4A182B#8C53A2
    red + whitered#FF474C#FFA191
    black + whitegray#A6A6A6 (close to darkgray)#636363
    red + greenbrown#55300B#A66900
    blue + orangedark green#3B6C3E#7D82B5
    purple + yelloworange-red#DB6948#C1907A
    blue + whiteblue#4886FF#74A3FF
    yellow + greengreen#4DC41B#92BF00
    red + blackdark red#771C1E#630000
    blue + greendark green#004F29#006A95

    Complementary paints such as blue and orange are usually said to mix to brown or gray. This model, with these two bright colors, gives a dark olive green (#3B6C3E), and purple and yellow give an orange-red (#DB6948). Real results depend on the pigments and amounts. With real paint, a little black also darkens a mix much more than the model shows, and a strong blue such as phthalo can take over a mix that a weaker blue would not. Food coloring dyes also absorb light, so they mix in a broadly similar way, but they are see-through and results vary by brand.

    What colors make brown, purple, green, red, orange and pink?

    The paint mixes below are computed with this tool's paint model from the CSS colors named.

    To find a color's complement, use the complementary color finder, and to build a palette from the mix, use the color palette generator.

    How the screen mix works

    Screen mode follows the color-mix() rules in CSS Color Module Level 5. The percentages are normalized first: if they add up to more than 100% they are scaled down, and if one is left out it gets whatever is left of 100%. If they add up to less than 100%, the colors are still mixed in proportion, but the result becomes partly transparent: color-mix(in srgb, red 30%, blue 30%) is purple with an alpha of 0.6. A mostly see-through color counts for less in the mix (CSS calls this premultiplied alpha).

    The color space changes the in-between colors. sRGB averages the HEX channels and tends to give darker, grayer middles. Linear sRGB averages the amount of light, which is closest to blending light physically. OKLab is perceptual, and it is the default in the current spec when no space is given. Older browsers need the space written out, so the tool always includes it. OKLCH moves around the hue circle, keeping colors vivid; shorter (the default) takes the short way round and longer the long way, so red and blue meet at purple one way and at green #008A0E the other.

    For three or four colors the tool writes nested two-color color-mix() calls, which work in every browser that supports color-mix() (Chrome 111, Firefox 113 and Safari 16.2 onward). The current CSS Color 5 draft allows one or more colors in a single call, mixed one after another from left to right, and the tool shows that list form too. At the time of writing, MDN's compatibility data lists support for the list form in Firefox 150 and Safari 27 but not yet in Chrome or Edge.

    How the paint mix works

    Paint mode turns each color into a reflectance curve: how much light it reflects at 38 wavelengths from 380 to 750 nm. The curves come from the open-source spectral.js library, which builds them from seven base curves made with a variation of Scott Burns' method for generating reflectance curves from sRGB colors. The curves are mixed with the Kubelka–Munk theory of paint layers (1931): each curve is converted to an absorption-to-scattering ratio, the ratios are averaged by concentration, and the average is turned back into a curve. As in spectral.js, each color's concentration is its amount squared times its brightness. The mixed curve is then lit with standard daylight (D65) and converted back to sRGB.

    Worked example

    Mix red #FF0000 and blue #0000FF 50/50.

    Blue and yellow show the difference most clearly: gray #808080 in sRGB, a light grayish blue #6CABC7 in OKLab, and green #398F54 as paint.

    Common mistakes

    Key terms

    color-mix()
    A CSS function that mixes colors in a chosen color space, such as color-mix(in oklab, red 40%, blue). Percentages set each color's share; if they total less than 100% the result is partly transparent.
    Interpolation color space
    The color space in which a browser blends between two colors, written in CSS gradients as in srgb, in oklab or in oklch. It changes the colors in between, not the stops themselves.
    Hue interpolation method
    In a polar color space such as OKLCH, the rule for which way to go around the hue circle when mixing two hues: shorter (the CSS default), longer, increasing or decreasing.
    Premultiplied alpha
    Multiplying each color channel by its alpha before mixing and dividing afterwards, so that a mostly transparent color contributes little color to the result. CSS uses it for color-mix() and gradients.
    Additive color mixing
    Mixing colored light, where the lights add up: red, green and blue light together look white. Screens make colors this way.
    Subtractive color mixing
    Mixing colors that absorb light, such as paints, inks and filters. Each one removes some wavelengths, so mixtures are darker; printing uses cyan, magenta and yellow inks (plus black) this way.
    Reflectance curve
    How much light a surface reflects at each wavelength across the visible spectrum, from 0 (none) to 1 (all). Two paints can look the same yet have different curves, and then mix differently.
    Kubelka–Munk theory
    A model of light in a layer of paint published by Paul Kubelka and Franz Munk in 1931. It describes a pigment by how much it absorbs (K) and scatters (S) light, and is widely used to predict paint mixtures.
    OKLab
    A perceptual color space published by Björn Ottosson in 2020, with lightness L and two color axes a and b. Equal distances in OKLab look roughly equally different, which makes it suitable for averaging and comparing colors.

    Frequently asked questions

    What colors make brown?
    Mix complementary colors, such as red and green, or all three painter's primaries. In this tool red and green paint make #55300B, and equal parts of red, yellow and blue make #803A2D.
    What color does red and green make?
    As paint, brown (#55300B here). As light, red and green add up to yellow, which is how screens show yellow; averaged with color-mix(in oklab) they give a brownish #A66900.
    What color does red and blue make?
    Purple. As paint it is a dark, muted purple (#4A182B here, lighter with white added); on screen, color-mix(in srgb, red, blue) gives #800080, the CSS color purple.
    What color does blue and yellow make?
    As paint they make green; this tool gives #398F54 for pure blue and yellow 50/50. On screen, a 50/50 color-mix() in sRGB gives gray #808080, because averaging light is not the same as mixing pigments.
    What color does blue and orange make?
    They are complementary, so paint guides usually say brown or gray. This model gives a dark olive green, #3B6C3E, for pure blue and CSS orange; with real paints the result depends on the pigments.
    Can color-mix() mix more than two colors?
    The current CSS Color 5 draft allows one or more colors in a single color-mix() call, but browser support is still incomplete, so the tool also gives nested two-color calls that work in every browser that supports color-mix().
    Why is my color-mix() result transparent?
    The percentages add up to less than 100%. The colors are mixed in proportion and the alpha is multiplied by the total, so 30% plus 30% gives an alpha of 0.6.
    How accurate is paint mode?
    It is an approximation from typical reflectance curves. Real paints depend on the pigment, so two blues that look alike can make different greens with the same yellow.

    Sources: CSS Color Module Level 5: color-mix(), CSS Values 5: normalizing mix percentages, CSS Color 4: color interpolation and hue methods, MDN: color-mix(), MDN browser compatibility data, spectral.js by Ronald van Wijnen (MIT License), Scott Allen Burns: generating reflectance curves from sRGB triplets, RYB color model, Brown (color), A perceptual color space for image processing (Björn Ottosson). Last checked 2026-11-17.