Free tool · Design and colour
Color mixer
Pick two to five colors, say how much of each you want, and get the mixed color as a HEX, RGB and HSL code. A row of steps shows the colors in between.
- Free
- No sign-up
- Runs in your browser
#965A72Example: #e63946 and #457b9d, half and half, mixed as screen light.
- Screen light (RGB)
- RGB
- rgb(150, 90, 114)
- HSL
- hsl(336, 25%, 47%)
- Paint (approximate)
- #ac5a6d
- Share of each color
- 50% and 50%
#e63946#be4a5c#965a72#6d6b87#457b9d
How to use the Color Mixer
- Choose How many colors?, then set each color with the color box or type its HEX code.
- Give each color an Amount from 0 to 100. A bigger amount counts for more.
- Pick Screen light (RGB) or Paint (approximate) under How to mix.
- Read the mixed color in the navy card, copy the code you need and look at the Steps below it.
How do I mix two colors?
Give each color an amount and the page takes a weighted average. Every color is three numbers from 0 to 255: red, green and blue. For each of the three, the page multiplies the number by the amount, adds the results and divides by the total amount. Half and half of #e63946 and #457b9d gives #965a72, which is rgb(150, 90, 114) or hsl(336, 25%, 47%).
Amounts are shares, not exact percentages. 75 and 25 give the same result as 3 and 1. With #e63946 at 75 and #457b9d at 25, the mix is #be4a5c, closer to the first color. A color with an amount of 0 is left out. If every amount is 0 there is nothing to mix, and the page says so.
You can use up to five colors. The share of each one is shown in whole percentages that add up to 100.
Why is paint different from screen light?
The first mode, Screen light (RGB), averages the red, green and blue numbers. This is how most design tools, and CSS gradients, blend two colors. Blue and yellow averaged this way give #808080, a plain gray. That surprises people who learned at school that blue and yellow make green.
The second mode, Paint (approximate), tries to match that school result. It places each color in a model built on red, yellow and blue, averages there, and turns the answer back into screen color. Blue and yellow now give #7faa8c, a soft green. This is an approximation. Real paint depends on the pigments, the brand, how thick the layer is and the paper, and a screen cannot show every paint. Treat the result as a good guess to start from, then test with the real paint.
A single color is never changed by the paint mode, and a small share of a second color moves the result a little, not suddenly.
The table shows both modes for five pairs, with equal amounts. The numbers come from the same functions the page runs.
| Colors | Screen light (RGB) | Paint (approximate) |
|---|---|---|
| Blue and yellow | #808080 | #7faa8c |
| Red and yellow | #ff8000 | #ff9f40 |
| Red and blue | #800080 | #9f409f |
| Red and green | #808000 | #9b893d |
| Black and white | #808080 | #8e6e49 |
There is a third idea, which the page does not use as a mode. Screen numbers are not proportional to the amount of light. The W3C describes the sRGB curve in its CSS Color specification. If you blend the light itself and not the stored numbers, half black and half white comes out as #bcbcbc, while the number average gives #808080. Most tools use the simple average, and so does this page, so what you see here matches what a gradient or a color blend in a design app gives.
What do the steps between the colors show?
The steps are a row of colors that start at your first color and end at your last one. With more than two colors, the row passes through the middle ones in the order shown. Choose how many steps you want, from 2 to 12. Red to blue in 5 steps, in screen light, is #ff0000, #bf0040, #800080, #4000bf, #0000ff.
Each step is a mix of two neighbors, using the mode you picked. They are handy for a gradient, a chart scale or a set of related shades. Copy the codes straight from the row.
If you want lighter and darker versions of one color, the tint and shade generator is made for that job.
How do I read HEX, RGB and HSL?
A HEX code like #965a72 is the three numbers written in base 16, two digits each: 96 for red, 5a for green and 72 for blue. RGB writes the same numbers in decimal: rgb(150, 90, 114). HSL describes the color another way: hue is the position on the color wheel from 0 to 360, saturation is how vivid it is, and lightness is how light or dark. The mixed color above is hsl(336, 25%, 47%).
All three describe the same color, so use whichever your software asks for. Each copy button copies the text with the right format, ready to paste into CSS, a design app or a document.
Everything runs in your browser. The colors you type are not sent anywhere.
Use it with
- HEX Color Name Finder: nearest color name for a HEX.
- Palette from Image: extract colors from a photo.
- Color Contrast Checker: WCAG contrast ratio.
Questions
What do you get when you mix two colors?
It depends on the mixing mode. Red #e63946 and steel blue #457b9d, half and half, give #965a72 in screen light.
Why does blue plus yellow not give green?
Screen light averages the numbers and gives #808080. Switch to Paint (approximate) to get a green, #7faa8c.
Is the paint mode exact?
No. It is an approximation. Real paint depends on its pigments, so test with the paint you will use.
How do I get more of one color?
Give that color a larger amount. Amounts are shares, so 75 and 25 act like 3 and 1.
How many colors can I mix?
Two to five. A color with an amount of 0 is left out of the mix.
Can I use a short HEX code?
Yes. A code like #f00 is read as #ff0000. The # sign is optional.
The tool's results are computed in your browser by the code on this page, using the sources listed above; the explanations are checked against the tool's own output.