01What is Color Mixer?
You have a brand blue and a brand green, and you need the color that sits between them. That is the whole job of this mixer. Pick Color 1 and Color 2, set the Mix Ratio slider, and the tool blends them by linear interpolation in sRGB. Each red, green and blue channel moves from Color 1 toward Color 2 by the slider percentage. At 0% you get Color 1 back exactly. At 100% you get Color 2. At 50% you land on the channel-by-channel midpoint, rounded to the nearest whole value. The result appears as a large swatch with its HEX, RGB and HSL values. The HSL line is worked out from the mixed RGB, using the usual hue, saturation and lightness formulas from the CSS Color specification, rounded to whole numbers. Below that, the Gradient Steps strip shows eleven swatches from 0% to 100% in 10% jumps, so you can see where a blend starts to turn muddy. Here's a quick worked case. Mix #3B82F6 with white at 20% and you get #629BF8, which is rgb(98, 155, 248) or hsl(217, 91%, 68%). That is a lighter tint of the same blue, a handy starting point for a hover background. Keep in mind this is light mixing, not paint mixing. Red and blue meet at a dark purple, #800080, not a bright violet. Yellow and blue cancel to plain gray, #808080, rather than green. Interpolating raw sRGB values also makes midpoints look a bit darker and duller than a perceptual space like OKLCH would. CSS color-mix() lets you choose such a space, so its output can differ from what you see here. Treat this tool as a match for color-mix(in srgb, ...), which uses the same straight channel blend, but not for other spaces. You can set each color with the native picker or type a hex code into the text box beside it. Six-digit codes and three-digit shorthand both work, and the leading # is optional. If a box holds something that is not valid hex, a red note tells you which color is wrong, and the last good value stays in use until you fix it. There is no alpha channel here, so transparency in your source colors is not considered. The blending is plain arithmetic in the page script, so your colors never leave the tab you have open.
Front-end developers and UI designers who need a precise in-between hex value for hover states, chart series or gradient stops. The tool runs entirely in your browser, so your data never leaves your device.
02How to use Color Mixer
- Set Color 1 with its color picker or type a hex code such as #3B82F6 into the box next to it.
- Set Color 2 the same way. Three-digit codes like #fff work too.
- Drag the Mix Ratio slider. Lower values stay closer to Color 1, higher values move toward Color 2.
- Read the HEX, RGB and HSL values under the preview swatch, and scan the Gradient Steps strip for the full blend.
- Click Copy to copy the hex value, or the reset button to go back to red, blue and 50%.
03Worked examples
- Input:
Color 1 #FF0000, Color 2 #0000FF, Mix Ratio 50% - Result:
HEX #800080, RGB rgb(128, 0, 128), HSL hsl(300, 100%, 25%) - Each channel is averaged, so red and blue give a dark purple, not the bright magenta #FF00FF.
- Input:
Color 1 #FFFF00, Color 2 #0000FF, Mix Ratio 50% - Result:
HEX #808080, RGB rgb(128, 128, 128), HSL hsl(0, 0%, 50%) - Yellow and blue are RGB opposites, so the average is gray instead of the green you get with paint.
- Input:
Color 1 #3B82F6, Color 2 #10B981, Mix Ratio 30% - Result:
HEX #2E93D3, RGB rgb(46, 147, 211), HSL hsl(203, 65%, 50%) - The ratio is how far the result moves toward Color 2, so 30% stays mostly blue.
- Input:
Color 1 #3B82F6, Color 2 #FFFFFF, Mix Ratio 20% - Result:
HEX #629BF8, RGB rgb(98, 155, 248), HSL hsl(217, 91%, 68%) - A light tint with the same 217 degree hue, useful as a hover background.
- Input:
Color 1 #3B82F6, Color 2 #000000, Mix Ratio 15% - Result:
HEX #326FD1, RGB rgb(50, 111, 209), HSL hsl(217, 63%, 51%) - Mixing toward black keeps the hue and gives a darker pressed state.
- Input:
Color 1 f00, Color 2 #0f0, Mix Ratio 25% - Result:
HEX #BF4000, RGB rgb(191, 64, 0), HSL hsl(20, 100%, 37%) - Three-digit codes are expanded (f00 becomes #FF0000) and the # is optional.
04Common use cases
- Picking a hover background for a primary button by mixing the brand color with #FFFFFF at 10% to 20%
- Building a darker pressed state by mixing the same color with #000000 at about 15%
- Finding an in-between series color for a chart that already uses two brand colors
- Choosing a middle stop for a CSS linear-gradient so the transition does not pass through gray
- Checking what color-mix(in srgb, ...) will return before you commit it to a stylesheet
- Generating a quick 10-step tint or shade ramp from the Gradient Steps strip for a design token draft
05Tips
- The slider moves in whole percent steps, so for a ratio like 12.5% you will need to round to 12 or 13.
- Mixing with #000000 keeps the hue and drops lightness, while mixing with a dark gray also pulls saturation down. Pick black for clean shades.
- If a midpoint looks dull, two complementary colors are probably canceling out. Try mixing each with white instead and compare.
- The gradient strip uses the same math at 0%, 10% up to 100%, so you can read a whole tint ramp off it without moving the slider.
- Your typed text is kept while it is invalid, so a half-finished code never resets the other color.
06Related concepts
Color interpolation, RGB color model, HSL, Tints and shades, CSS color-mix().
Frequently Asked Questions
What is Color Mixer?
Color Mixer is a free, browser-based developer tool on AIDToolStack. Mix two colors together with adjustable ratio It requires no installation or sign-up and works entirely in your browser.
Is Color Mixer free to use?
Yes. No sign-up, no fees and no usage cap.
Does Color Mixer store my data?
No. It runs in your browser; nothing is uploaded.