Color Blender

Blended colour—
Red—
Green—
Blue—

How Color Blender is calculated: Blend = colour1 + (colour2 - colour1) x ratio, applied to each RGB channel and rounded. Ratio 50% is the exact midpoint.

What is a color blender?

A color blender mixes two colours at a ratio you choose and gives you the exact result. Blend red #FF0000 with blue #0000FF at 50% and you get purple #800080 — red 128, green 0, blue 128. Move the slider to 25% and the result is closer to red; move it to 75% and it is closer to blue.

Designers blend colours to find midpoints between brand colours, to build gradients, and to make a palette from two starting colours. A gradient from red to blue passes through purple, and a palette built from two colours needs the steps in between — which is what a blender computes.

This tool is different from the color palette generator on this site, which builds a whole scheme from one colour. A blender starts with two colours and finds the colours between them, which is the job when the two ends are already decided.

How color blending works

Blending is linear interpolation on each RGB channel. A colour is three numbers — red, green, and blue, each from 0 to 255 — and the blend is computed channel by channel: blend = first + (second - first) x ratio. At a ratio of 50%, each channel is the average of the two inputs.

The default blend is red #FF0000 and blue #0000FF at 50%. Red goes from 255 to 0, so its midpoint is 127.5, which rounds to 128. Green is 0 in both, so it stays 0. Blue goes from 0 to 255, so its midpoint is also 128. The result is #800080, with channels 128, 0, and 128.

The ratio is the share of the second colour. At 0% the result is exactly the first colour; at 100% it is exactly the second. At 25% the result is three parts first colour and one part second, which is a subtle shift — useful for a hover state or a tinted background.

The blend is a straight line between the two colours, and the ratio is where you sit on that line. A ratio of 0 gives the first colour exactly, a ratio of 1 gives the second colour exactly, and a ratio of 0.5 gives the midpoint, which is the average of each channel. The math is done per channel — red with red, green with green, blue with blue — so the midpoint of red and blue is a purple, because the red channel averages to half, the blue channel averages to half, and the green channel stays at zero. The result is predictable, which is why the blender is useful for building a scale.

The ratio, explained

The ratio is the only input that changes the result's position between the two colours. A ratio of 50% is the midpoint, which is the most useful blend: the exact halfway colour between two brand colours is the natural choice for a gradient's middle stop or a shared border.

A ratio of 25% or 75% gives the quarter points, which are the steps of a four-step gradient. A gradient from red to blue with stops at 0%, 25%, 50%, 75%, and 100% passes through five colours, and the blender computes the three in the middle. Blend at 25% and 75% to get them.

Small ratios make tints. Blending a colour with white at 10% gives a colour that is barely lighter than the original — a tint for a background. Blending with black at 10% gives a barely darker shade. The blender works with any two colours, so white and black are valid inputs too.

A worked example: red and blue

Take the defaults: #FF0000 and #0000FF at 50%. The blend is #800080, with red 128, green 0, and blue 128. That purple is the midpoint of the two, and it is the colour a gradient from red to blue passes through halfway.

Move the ratio to 25% and the blend becomes #BF0040 — red 191, green 0, blue 64 — which is three-quarters red and one-quarter blue. Move it to 75% and the blend becomes #4000BF — red 64, green 0, blue 191 — which is the mirror image. The three blends together are the steps of a gradient from red to blue.

Try a real pair: blend a brand blue #2563EB with white #FFFFFF at 90% and you get a pale blue tint for a background. The formula is the same — each channel moves 90% of the way from the brand colour to white — and the result is a tint that still reads as the brand colour.

Who uses a color blender, and why

Web designers are the main users. A gradient, a hover state, a tinted background, or a border colour all need a colour between two known colours, and guessing the hex by eye is slow and inaccurate. A blender gives the exact value in one drag of a slider.

Brand designers are the second group. A brand with two colours needs the colours between them for a palette: the midpoint, the quarter points, and the tints. Blending the two brand colours at several ratios builds the palette systematically, instead of picking colours by eye.

Developers are a third group. A theme with a light and a dark mode needs intermediate colours for borders, shadows, and disabled states, and blending the two theme colours at fixed ratios keeps the theme consistent. A colour picker gives the exact hex of any colour to blend from.

Designers are a third group. A theme needs more than two colours — it needs the steps between them, for borders, for hover states, and for disabled buttons. The blender makes those steps: pick the two theme colours, blend them at fixed ratios, and the results are the intermediate colours the theme needs. The ratios should be consistent — 25, 50, and 75 percent — so the scale is even, and the theme stays coherent across every screen.

Color blender vs color palette generator

A blender mixes two colours; a palette generator builds a scheme from one. The color palette generator on this site takes one colour and produces a set of matching colours — complementary, analogous, or triadic — which is the job when you have one colour and need more. This tool takes two colours and finds the ones between them, which is the job when both ends are decided.

The two tools complement each other. Generate a palette from a brand colour, pick two colours from it, and blend them to find the steps in between. Or blend two brand colours first, then feed the midpoint into the palette generator to build a scheme around it.

A colour picker is the third tool in the set: it gives the exact hex value of any colour on screen, which is the input this blender needs. Pick the colours, blend them, and build the palette — three steps, three tools. and a box shadow generator uses the blended colour for a card's shadow.

A blender is not a palette generator, and the distinction matters when the goal is a scheme rather than a step. A blender mixes two colours you chose and gives you the colours between them, which is the tool for a scale. A palette generator takes one colour and builds a set of colours that work with it, which is the tool for a scheme. Use the blender when you have two colours and need the middle, and the palette generator when you have one colour and need the rest.

Common color blending mistakes

The first mistake is blending in the wrong colour space. This tool blends in RGB, which is what CSS gradients do — but RGB blending can pass through grey or muddy colours when the two inputs are complementary. A blend of yellow and blue in RGB passes through grey-green, which may not be what you wanted. Check the midpoint before using it.

Second: rounding. A midpoint of 127.5 rounds to 128, which is a one-step difference from the exact value. Over several blends the rounding can drift by a step or two, which is invisible on screen — but if two blends must match exactly, compute them from the same inputs rather than blending a blend.

Third: forgetting the # sign. A colour written as FF0000 without the hash is read as invalid by this tool, which reports "Invalid colour". Include the hash, or use the three-digit shorthand — F00 is read as FF0000.

Fourth: blending colours that are too far apart for the job. A blend of red and green at 50% is a muddy brown, which is correct arithmetic but a poor design choice. Blend colours that are close together for tints, and use complementary colours only when the midpoint is part of the design.

A second mistake is expecting the midpoint of two colours to look like a mix of the two. It does in numbers, but the eye does not see colour linearly — a 50 percent blend of black and white looks grey, but a 50 percent blend of a saturated red and a saturated blue can look muddy, because the average of two bright colours is a duller colour than either. The fix is to blend in steps and check each step by eye, rather than trusting the number alone. The blender shows the result, and the eye is the judge.

How to use this color blender

Type two hex colours into the boxes — the defaults are #FF0000 and #0000FF — and drag the ratio slider. The default blend at 50% is #800080, with channels 128, 0, and 128. The blended colour updates live in the box below, as hex and as RGB.

To copy the result, use the Copy button next to the output box. To build a gradient, blend at 25%, 50%, and 75% and use the three results as the middle stops. To make a tint, blend your colour with white; to make a shade, blend it with black.

Everything runs in your browser. No sign-up, no account, no data sent anywhere. It works offline once the page has loaded. Try your two brand colours first, and check the midpoint on your background before you use it anywhere.

Pick the two colours with the colour pickers, move the ratio slider, and the blended colour appears at once with its hex value underneath. The preview shows the two source colours on either side and the blend in the middle, so the relationship is visible. Move the slider slowly from one end to the other and watch the blend pass through the intermediate colours — the steps are the scale, and the scale is what a theme needs. When a step looks right, copy its hex value.

Frequently Asked Questions

Purple #800080, with red 128, green 0, and blue 128. Red goes from 255 to 0, so its midpoint is 127.5, which rounds to 128. Blue goes from 0 to 255, so its midpoint is also 128. Green is 0 in both, so it stays 0.

The share of the second colour. At 0% the result is exactly the first colour; at 100% it is exactly the second. At 50% it is the midpoint, and at 25% it is three parts first colour and one part second colour.

Yes. Blending a colour with white makes a tint — a paler version of the colour — and blending with black makes a shade. A 10% blend with white gives a barely lighter tint, which suits backgrounds.

Yes, or the three-digit shorthand. #FF0000 is red, and #F00 is read as #FF0000. A colour written as FF0000 without the hash is reported as invalid.

More free tools

More calculators and utilities from Sortrun — free, no sign-up.