Set the ratio like a recipe
The ratio is the share of color A; 50% is an even blend, 25% mostly B, 75% mostly A. The gradient preview paints every 10% step so you can pick an intermediate ratio by eye and read the exact value below.
Mix two colors at a chosen ratio and get the blended result in hex and rgba, with a live gradient showing every step between them.
Mixing happens in sRGB, the space CSS actually renders in, so the result matches what a browser blend will look like.
All color math runs locally in this browser tab. Nothing is sent to a server.
The ratio is the share of color A; 50% is an even blend, 25% mostly B, 75% mostly A. The gradient preview paints every 10% step so you can pick an intermediate ratio by eye and read the exact value below.
The mix happens channel by channel in sRGB — the same arithmetic a browser applies when compositing translucent layers. That makes the result predictable in real interfaces, though it can differ from pigment mixing or perceptual spaces like OKLab.
To soften a brand color for hover states or backgrounds, mix it with white or the page background at 80–90% instead of picking a lighter color by hand — the relationships stay consistent across your palette.
Photoshop blends in the document color profile and can use different algorithms per blend mode. This tool uses plain sRGB averaging, which matches CSS translucency behavior.
In sRGB, blue and yellow average to a desaturated mid-tone. Pigment mixing differs because it works with absorbed light. For vivid secondary colors, choose them from a wheel rather than averaging complements.
Mix two at a time and chain the results: mix A+B, then mix that result with C. Chaining with explicit ratios is predictable, unlike a three-way average which hides its weighting.
Yes — if either input has transparency below 1, the alpha is averaged with the same ratio and the rgba() output reflects it.
Pick a category to see every tool in it — then open one and discover related tools.