Quick Answer
Pick two to four colors and set how many parts of each to use. Choose a mixing method, then press Mix colors. The swatch and the HEX, RGB and HSL codes show the result, along with what the other two methods would give.
Embed this calculator
Adjust the size if needed, then copy the code below into your page or blog. The calculator will load in an iframe and stay updated automatically.
Table of Contents
- Color Mixer
- Quick Answer
- Related Calculators
- How This Color Mixer Works
- How to Use the Color Mixer
- How Colors Are Mixed
- Key Terms
- Worked Example
- Real-Life Examples
- Additive vs Subtractive Mixing
- Mixing Examples
- Tips for Mixing Colors
- Common Mistakes to Avoid
- Frequently Asked Questions
- References & Sources
How This Color Mixer Works
Mixing colors means combining two or more colors to get a new one. How you combine them matters: light on a screen adds together, while paint and ink take light away. This tool shows the result for both ideas, so you can see why blue and yellow make green in a paint box but not on a screen.
Pick two to four colors, give each a number of parts, and choose a method. You get the mixed color as a swatch, with its HEX, RGB and HSL codes ready to copy.
Features:
- 2 to 4 colors: mix as many as you need.
- Parts: use 3 parts of one color and 1 part of another for a weighted mix.
- Three methods: simple RGB average, gamma-correct light mixing, and a paint-like estimate.
- Compare: the table shows the result of the other two methods for the same colors.
How to Use the Color Mixer
- Choose how many colors to mix, from 2 to 4.
- Pick each color and set how many parts of it to use.
- Choose a mixing method: simple average, light mixing or paint-like.
- Press Mix colors.
- Copy the HEX, RGB or HSL code of the mixed color.
How Colors Are Mixed
- Simple average: for each of red, green and blue, add the values times their parts and divide by the total parts. It is the quick method used by most color tools, though it comes out darker than real mixed light.
- Light mixing (gamma-correct): screens store colors with a curve called gamma. This method first converts each value to linear light, with a value of 0 to 1 that adds up the way light really does, then averages and converts back. The sRGB curve is linear below 0.04045 and a 2.4 power above it.
- Paint-like blend: paints absorb light, so each layer removes some of it. This tool estimates that by taking a weighted geometric mean of the linear values, which is a standard rough model of subtractive mixing. Zero values are lifted to 0.005 so one empty channel does not turn the whole mix black.
- Parts: each color's share is its parts divided by the total parts.
Key Terms
- HEX code: a six-digit code such as #800080 that names a color for the web.
- RGB: the amounts of red, green and blue light, each from 0 to 255.
- Gamma: the curve screens use to store brightness.
- HSL: hue, saturation and lightness, another way to describe a color.
Worked Example
- Mix pure red (255, 0, 0) and pure blue (0, 0, 255) in equal parts, using the simple average.
- Red channel: (255 + 0) ÷ 2 = 127.5, which rounds to 128. Green stays 0. Blue: (0 + 255) ÷ 2 = 127.5, which rounds to 128.
- Result: 128, 0, 128, which is HEX #800080, a deep purple.
- With gamma-correct light mixing, the same two colors give a lighter purple, because the average is taken in linear light.
Real-Life Examples
- Web design: mixing 1 part of a brand blue with 3 parts of white gives a light tint for backgrounds.
- Painting: estimate what blue and yellow give before you open the paint, then check with real paint.
- Teaching: compare light mixing and paint mixing to show why the two work differently.
- Crafts and fashion: find a midpoint between two shades, such as a color halfway between two fabrics.
Additive vs Subtractive Mixing
- Additive (light): screens add light. Red, green and blue together make white.
- Subtractive (paint, ink): each pigment absorbs light, so mixing more pigments gives a darker color. Cyan, magenta and yellow printing inks work this way.
- This tool: the light method models the first idea and the paint-like method estimates the second.
Mixing Examples
| Colors | Simple average | What to expect |
|---|---|---|
| Red and blue | #800080 | Purple |
| Red and green | #808000 | Dark yellow or olive |
| Black and white | #808080 | Mid gray |
| Blue and yellow | #808080 | Gray, not green, with a simple average |
Tips for Mixing Colors
- Use screen methods for screens: if you design for the web or video, the light-mixing method is closest to how screens add colors.
- Use the paint-like method as a guide: test with a small amount of real paint, because every pigment is different.
- Add white last: to lighten a color, mix in a small number of parts of white.
- Try parts: mixing 3 parts to 1 part is a quick way to nudge a color.
- Copy the HEX code: paste it into your design tool, website or document.
Common Mistakes to Avoid
- Expecting screen blue and yellow to make green. Light mixing gives gray. Only paint-like mixing gives a greenish result.
- Trusting the paint estimate exactly. Real paint depends on the pigments you use.
- Mixing too many colors. Each extra color pulls the result toward gray or brown.
- Forgetting parts. Equal parts is not the only option. A 3 to 1 mix gives a very different color.
- Using the result for print. Printers use CMYK, so printed colors can look different from the screen.
Frequently Asked Questions
Pick both colors, choose how many parts of each, and press Mix colors.
Yes, with no sign-up and no uploads.
In paint they make green. With the simple average or light mixing on a screen they make gray. The paint-like method gives a greenish mix.
Purple. With a simple average, equal parts give #800080.
How much of each color to use. Two colors with 1 part each are mixed equally.
Light mixing for screens, paint-like for a rough idea of paint, and the simple average for the usual web tool result.
Yes, up to four.
Not exactly. Paint depends on its pigments, so test a small amount first.
It averages in linear light, which is how light actually adds up, instead of the stored screen values.
A six-digit code for a color, such as #FF0000 for pure red.
Hue (the color on a wheel from 0 to 360), saturation (how vivid) and lightness (how light or dark).
It uses screen colors. Printed colors can differ because printers use CMYK inks.
Yes. Equal parts give a mid gray in the simple average method.
Yes. Copy the HEX code and paste it into your design tool or CSS.
References & Sources
| Source | Used For | Link |
|---|---|---|
| Wikipedia, Additive color | How light adds together to make colors on screens. | https://en.wikipedia.org/wiki/Additive_color |
| Wikipedia, Subtractive color | How dyes and pigments absorb light, the model behind paint and ink. | https://en.wikipedia.org/wiki/Subtractive_color |
| Wikipedia, sRGB | The sRGB transfer function, linear below 0.04045 and a 2.4 power above it. | https://en.wikipedia.org/wiki/SRGB |