The Util Box

Color Mixer

Free online color mixer. Blend two colors with percentage ratio. Perfect for designers and developers.

#e53935
#1e88e5
Blended Result
#82618d
rgb(130, 97, 141)
50%+
50%

Embed this tool

Copy and paste the code below into your website to embed this tool for free. An attribution link to The Util Box is required.

<iframe src="https://www.theutilbox.org/embed/color-blender" width="600" height="500" frameborder="0" style="border: none; max-width: 100%;" title="Free Color Mixer tool from The Util Box"></iframe>
<!-- Free tool by The Util Box — https://www.theutilbox.org/tools/color-blender -->
<a href="https://www.theutilbox.org/tools/color-blender">Color Mixer by The Util Box</a>

Frequently Asked Questions about Color Mixer

Color Blender — Mix Colours by Weight and Read the Result

This colour blender mixes two to five colours together in proportion, so you can find the intermediate tone rather than guessing at it. Give each colour a weight between 0 and 100 and the tool returns the weighted average as a hex code and an RGB triple, with a large swatch showing the result.

This is how tinting and shading actually work in most design software. A 50/50 blend of two colours is the halfway point; an 80/20 blend sits close to the dominant colour with a hint of the other. Setting one colour's weight to zero gives you the other colour exactly.

How the Blend Is Computed

Every colour is converted to its red, green and blue components, and each channel is then averaged using the weights as the divisor:

Step What happens
1 Each hex value is split into its red, green and blue channels, each from 0 to 255.
2 Each channel is multiplied by that colour's weight, and the products are summed.
3 The sum is divided by the total of all the weights.
4 The result is rounded to a whole number and written back as a hex code and an rgb() triple.

Because the weights are used as ratios, only their relative size matters — 20 and 40 give the same result as 1 and 2. The breakdown under the swatch shows each colour's weight in the mix.

Limits and Behaviour

  • Two to five colours. The add button disappears once you reach five, and the remove button only appears when more than two are in the mix.
  • The blend is an average in RGB, not in HSL or LCH, so mixing two saturated colours can produce a duller result than you would expect — a consequence of averaging in a rectangular colour space.
  • If every weight is set to zero the tool returns black rather than dividing by zero, because the total weight is checked first.
  • Colours are picked with the browser's own colour input, so the values are always well-formed six-digit hex.
  • Nothing is saved. The mix resets to a red-and-blue 50/50 when you reload the page.

Related Colour Tools

  • Tint & Shade Generator — lighten and darken a single colour along the same axis.
  • Color Harmony — score a palette and see which pairs work together.
  • Color Palette — build a full scheme from a single starting colour.
  • HEX to RGB — the channel values behind the blend.
  • RGB to HEX — the reverse, for pasting the result elsewhere.
  • HEX to HSL — see the hue, saturation and lightness of the blended result.
  • Contrast Checker — check the result against a background for readability.

The blend runs entirely in your browser, so no colour is uploaded.