Skip to content
ToolFarmToolFarm
Design

Color Mixer

Blend two colors by any ratio and get the result as HEX, RGB and HSL. Mixes in linear light, so the blend does not come out muddy.

3 min read

What this tool does

Pick two colors, slide the ratio, and see what they make. Both are shown either side of the result so you can judge the blend against what went into it. The mixing happens in linear light by default, which is the part most mixers get wrong: colors on screen are stored in a way that is not proportional to actual brightness, so averaging the stored numbers makes the midpoint come out darker and muddier than your eye expects. Mixing red and green that way gives a murky olive, while mixing them as light gives the bright tone you were picturing. The plain sRGB mode is there too, for when you need to match what CSS color-mix or another tool produced. It accepts hex, rgb and hsl, and gives you the result in all three.

What you can use it for

  • Find the midpoint between two brand colors for a gradient stop.
  • Soften a strong accent by mixing a little of it into a neutral.
  • Build a tint by blending a color toward white, or a shade toward black.
  • Work out a hover state that sits partway between two existing colors.

How to use it

  1. Set your two colors, by picker or by typing a value.
  2. Slide the ratio to choose how much of the second color goes in.
  3. Switch between linear light and sRGB if you need to match another tool.
  4. Copy the result as HEX, RGB or HSL.

Everything runs inside your browser. No file is uploaded to any server. See more tools in this field.

Design

Frequently asked questions

Why are there two mixing modes?

Because they answer different questions. Linear light mixes the colors the way light actually mixes, which is what your eye expects and what you want for gradients and blends. The sRGB mode averages the stored values directly, which is what CSS color-mix in srgb and most other online mixers do. If you are trying to match a result from somewhere else, use sRGB; otherwise linear will look better.

Which one should I use?

Linear light, unless you have a specific reason not to. It is the default because it produces brighter, cleaner blends. The classic tell is mixing black and white: linear gives you a middle grey that actually looks like the middle, while sRGB gives you one that reads as noticeably dark.

What color formats can I paste in?

Hex, rgb and hsl, in the same forms the color converter accepts, including alpha. The result is given back as hex, rgb and hsl at once so you can take whichever your code needs.

What happens to transparency?

Alpha is blended straight across in both modes. Transparency is not stored in the same non-proportional way that color is, so there is nothing to correct for.