Export the ramp (CSS, SCSS, Tailwind, JSON, SVG, PNG, ASE, PDF)
:root {
--blend-a: #6366F1;
--blend-1: #946DD1;
--blend-2: #B275B1;
--blend-3: #C97E90;
--blend-4: #DA886F;
--blend-5: #E9934A;
--blend-b: #F59E0B;
}Compare every blend mode
The same two colors mixed six ways. The marked swatch is the 50% midpoint. Click a row to use that mode.
Mix three or more colors
Give each color a weight, like parts in a recipe. The mix uses the blend mode chosen above (HSL mixes fall back to LAB here).
How to use
Enter the two colors
Type or pick Color A and Color B, or press Pick A from screen or Pick B from screen in Chrome or Edge. HEX codes, rgb(), hsl() and CSS names such as tomato all work. Swap A and B flips them.
Set the ratio and blend mode
Drag Mix ratio to choose how much of B goes into the mix, then pick a blend mode, or click a row in Compare every blend mode. The Mix result card shows HEX, RGB and HSL with copy buttons.
Make a ramp and export it
Move Midpoints between A and B from 1 to 20. Copy steps, copy a CSS gradient, or use the export panel. For three or more colors, fill in Mix three or more colors and set the parts.
Why Color Blender
- Mix two colors in six modes, with a side by side comparison.
- Weighted mix of three to eight colors.
- 1 to 20 midpoints, CSS gradient and full ramp export.
- Share link and pick from screen. Runs in your browser.
LAB vs RGB mixing: a side by side example
The mode you choose changes the midpoint a lot when the two colors are far apart. Here are two classic pairs mixed at 50% in RGB and LAB. RGB values are exact. LAB values are approximate because they depend on rounding, so check the tool for the precise code.
In RGB mode each channel is averaged: red (255, 0, 0) and lime (0, 255, 0) give (128, 128, 0), which is olive. In LAB mode the colors are mixed by perceived lightness and two color axes, so the midpoint keeps more of the brightness of both colors. That is why LAB is the default here.
| Color A | Color B | RGB mix at 50% | LAB mix at 50% (approx.) |
|---|---|---|---|
| #0000FF blue | #FFFF00 yellow | #808080 gray | #CA8AAA dusty pink |
| #FF0000 red | #00FF00 lime | #808000 olive | #C9AB00 mustard |
| #6366F1 indigo | #F59E0B amber | #AC827E grayish brown | #C97E90 muted rose |
Screen mixing (RGB) vs paint mixing (RYB)
Screens make color by adding red, green and blue light. Adding more light makes colors brighter, and all three at full strength make white. Paints and inks work the other way: each pigment absorbs part of the light, so mixing more pigments makes colors darker and eventually a muddy brown or near black.
Art classes teach red, yellow and blue (RYB) as the painter's primaries, and in that system blue and yellow make green. On a screen, blue and yellow light sit opposite each other and average to gray. This blender models screen color only, the same way a browser draws a gradient. It is the right tool for web and app palettes, gradients and data visualisation, but not for predicting what happens in a paint pot.