⚡ BreezyTools Pro — Ad-free experience across all 200+ tools. Less than a coffee a month → Learn More

Color Blender

Mix two colors at any ratio in RGB or HSL space.

#000000
rgb(0,0,0)

How to blend two colors

Pick Color A and Color B, then drag the Mix slider. At 0% you get pure Color A, at 100% pure Color B, and at 50% an even blend. Choose RGB or HSL as the blending space. The swatch, HEX value, and rgb() value update instantly, and each value has its own copy button. Everything is calculated in your browser.

How RGB blending works

RGB mode interpolates each channel separately: result = A + (B − A) × mix. For example, blending #6c3ce1 (108, 60, 225) with #0ea5e9 (14, 165, 233) at 50% gives red 61, green 112.5 (rounded to 113), and blue 229, which is #3d71e5. This is the same calculation CSS performs with color-mix(in srgb, ...). It's predictable and good for tints and shades. But blending two saturated colors from opposite sides of the color wheel produces a dull midpoint. Red and green give olive (#808000), and blue and yellow give flat gray (#808080).

How HSL blending works

HSL mode converts both colors to hue, saturation, and lightness. It moves the hue the shorter way around the color wheel and blends saturation and lightness in a straight line. Saturation is kept, so blends stay vivid. Red (0°) and green (120°) meet at pure yellow (60°, #ffff00). There are two catches:

  • Hues exactly 180° apart have no shorter way, so the tool always turns in the same direction. Blue and yellow pass through a green-cyan (#00ff80) at 50%.
  • White, black, and grays have no real hue, and the tool treats theirs as 0° (red). Blending white with blue in HSL passes through pinkish lavender (#df9fdf). Use RGB whenever one of the colors is a neutral.

RGB vs. HSL at 50%

Color A + Color BRGBHSL
#ff0000 + #00ff00#808000#ffff00
#ff0000 + #0000ff#800080#ff00ff
#0000ff + #ffff00#808080#00ff80
#ffffff + #0000ff#8080ff#df9fdf
#6c3ce1 + #0ea5e9#3d71e5#224ae8

Reproducing a blend in CSS

Modern browsers can blend colors directly with color-mix(). In CSS, a percentage written after a color is that color's share. The tool's slider sets the share of Color B, so 30% here equals:

color: color-mix(in srgb, #6c3ce1, #0ea5e9 30%);

in hsl is the CSS counterpart of the HSL mode for saturated colors, though CSS ignores the hue of grays instead of treating it as red. CSS also offers perceptual spaces such as in oklch and in oklab, which keep brightness more even across a blend. This tool doesn't offer those spaces, but they're worth trying in your stylesheet.

Practical uses

  • Hover and pressed states: blend a brand color 10–20% toward black for a darker state, or toward white for a lighter one.
  • Tint and shade scales: blend with white at 10% steps for tints, and with black for shades.
  • Gradient midpoints: a blue-to-yellow gradient drawn in sRGB passes through gray. Adding the HSL midpoint as an extra color stop keeps it vivid.
  • Accessible text colors: after blending, check the result's contrast against the text or background it will sit on.

Frequently Asked Questions

What is the difference between RGB and HSL blending?

RGB blends the red, green, and blue channels in a straight line, which is predictable but can turn midpoints dull or gray. HSL blends hue around the color wheel, plus saturation and lightness, so midpoints stay saturated. But it can pass through unexpected hues, especially with white, black, or gray.

Why does mixing blue and yellow give gray instead of green?

Screen colors mix as light, not paint. Averaging blue (0, 0, 255) and yellow (255, 255, 0) channel by channel gives (128, 128, 128), which is gray. Paint mixes subtractively, which is why blue and yellow paint make green. Switch to HSL mode to get a green-cyan midpoint instead.

How do I make a tint or shade of a color?

Set Color B to white for a tint or black for a shade, choose RGB mode, and move the slider. At 20% toward black, each channel drops by a fifth. At 20% toward white, each channel moves a fifth of the way to 255.

Is the mix percentage the amount of Color A or Color B?

Color B. The slider shows how far the result has moved from Color A toward Color B, so 25% means three parts A to one part B.

Does the blender support transparency?

No. Both inputs and the result are opaque colors, written as six-digit HEX and rgb(). To blend with transparency, use color-mix() in CSS with colors that include an alpha value.

Why does my HSL blend look different from CSS color-mix in hsl?

The two match for saturated colors. They differ when one color is white, black, or gray. CSS treats those hues as missing and borrows the other color's hue, while this tool treats them as 0° (red). Use RGB mode or a perceptual space like oklch for neutral blends.

Love using BreezyTools?

Go Pro for an ad-free experience, priority features, and support independent development — for less than a coffee a month.

Upgrade to Pro →