About Color Mixer
This hex color mixer blends two colors the way a screen does: it takes the red, green and blue values of each color and moves each one the same percentage of the way from the first color to the second. At 50% the result is the exact midpoint, so red #ff0000 and blue #0000ff give purple #800080. Drag the Mix slider to weight the blend toward either color, and set Steps to show to get between 3 and 15 evenly spaced colors from one to the other. Because this is light mixing and not paint mixing, some answers differ from the art room: blue and yellow give gray #808080 here, not green.
Color mixing chart: what two colors make at 50%
Each result is the tool's output for the two hex codes with Mix at 50%.
| First color | Second color | 50% mix | Looks like |
|---|---|---|---|
| Red #ff0000 | Blue #0000ff | #800080 | Purple |
| Red #ff0000 | Yellow #ffff00 | #ff8000 | Orange |
| Red #ff0000 | White #ffffff | #ff8080 | Light red, salmon pink |
| Red #ff0000 | Black #000000 | #800000 | Maroon |
| Red #ff0000 | Green #00ff00 | #808000 | Olive |
| Blue #0000ff | Yellow #ffff00 | #808080 | Mid gray |
| Blue #0000ff | White #ffffff | #8080ff | Light periwinkle blue |
| Blue #0000ff | Green #00ff00 | #008080 | Teal |
| Yellow #ffff00 | Green #00ff00 | #80ff00 | Chartreuse |
| Yellow #ffff00 | White #ffffff | #ffff80 | Pale yellow |
| Orange #ffa500 | Blue #0000ff | #805380 | Dusty purple |
| Pink #ffc0cb | Blue #0000ff | #8060e5 | Violet blue |
| Pink #ffc0cb | Purple #800080 | #c060a6 | Orchid pink |
| Purple #800080 | Green #008000 | #404040 | Dark gray |
| Black #000000 | White #ffffff | #808080 | Mid gray |
Green #00ff00 is the bright web color lime. The darker web color named green is #008000, and it gives darker mixes: with yellow it makes #80c000.
The formula for mixing two RGB colors
mixed channel = first + (second - first) x mix / 100
The formula is applied separately to red, green and blue, and each result is rounded to a whole number from 0 to 255. Take #4f46e5, which is rgb(79, 70, 229), and #f97316, which is rgb(249, 115, 22), at 25%. Red is 79 + (249 - 79) x 0.25 = 121.5, rounded to 122. Green is 70 + 45 x 0.25 = 81.25, rounded to 81. Blue is 229 + (22 - 229) x 0.25 = 177.25, rounded to 177. That is rgb(122, 81, 177), or #7a51b1, which is what the tool shows. A CSS linear-gradient between the same two colors uses this same calculation by default, so the Blend scale matches what the gradient passes through.
Mixing at different ratios and step counts
Quarter, half and three quarters
First colour #4f46e5, Second colour #f97316, Mix 25%, then 50%, then 75%
#7a51b1 at 25%, #a45d7e at 50%, #cf684a at 75%
Five step scale from red to blue
First colour #ff0000, Second colour #0000ff, Steps to show 5
#ff0000, #bf0040, #800080, #4000bf, #0000ff (labeled 0%, 25%, 50%, 75%, 100%)
A very light tint for a background
First colour #2563eb, Second colour #ffffff, Mix 80%
#d3e0fb
With Steps to show at 6 the scale is #2563eb, #5182ef, #7ca1f3, #a8c1f7, #d3e0fb, #ffffff.
Ten percent tints of one color
First colour #4f46e5, Second colour #ffffff, Steps to show 11
#4f46e5, #6159e8, #726bea, #847eed, #9590ef, #a7a3f2, #b9b5f5, #cac8f7, #dcdafa, #ededfc, #ffffff
One third
First colour #ff0000, Second colour #0000ff, Mix 33%
#ab0054
The Mix slider moves in whole percentages, so an exact third is not available. With Steps to show at 4, the scale gives the true thirds #aa0055 and #5500aa.
Why the middle of a blend can look dull or dark
Averaging RGB numbers is simple and predictable, and it matches how CSS gradients, image editors in normal blend mode and most design tools interpolate by default. It has one well known weakness. When the two colors are far apart on the color wheel, the midpoint loses saturation: blue and yellow meet at flat gray, and purple #800080 with green #008000 lands on dark gray #404040. The stored RGB numbers are also not proportional to actual light output, so numeric midpoints tend to look a little darker than the eye expects.
If the midpoint looks muddy, you have three options. Pick endpoints that are closer in hue. Add a hand picked middle color and blend in two halves. Or, for gradients on a web page, ask the browser to interpolate in a perceptual space by writing linear-gradient(in oklch, #0000ff, #ffff00), which travels around the color wheel instead of cutting through gray. This tool always uses plain RGB averaging, so its swatches show the default behavior.
What you can do with a two color mix
- Find a border or divider color that sits between two neighboring surface colors.
- Build a sequential chart scale: set Steps to show to the number of classes you need and take the swatches in order.
- Make tints and shades of a brand color by mixing it with white or black at fixed steps of 10%.
- Preview the middle of a gradient before using it. The CSS gradient output uses the same two colors.
- Pick a text color for the result: the Readable text row tells you whether black or white text suits the mixed color as a background.
Using Color Mixer
- 1
Enter the First colour as a hex code or pick it with the color swatch.
- 2
Enter the Second colour the same way.
- 3
Drag Mix to the percentage you want. 0% is the first color, 50% is the midpoint and 100% is the second color.
- 4
Set Steps to show from 3 to 15 to control how many swatches appear in the Blend scale. Each swatch is labeled with its percentage and has a copy button for its hex code.
- 5
Read Mixed HEX, Mixed RGB and Mixed HSL in the Values panel, or copy the CSS gradient between the two colors.