Start a project

Tool 77 of 450 · Colour mixing

Colour Mixer

Mix two colours at any ratio in sRGB, linear RGB or OKLCH and compare the results, with CSS color-mix() code.

Colour Mixer

Your input

Result

SpaceResultvs whiteCSS
CSS

01

What it does

Mix two colours at any ratio in sRGB, linear RGB or OKLCH and compare the results, with CSS color-mix() code.

  • sRGB, linear RGB, OKLab, OKLCH and HSL
  • Any ratio from 0 to 100%
  • CSS color-mix() for every space
  • Gradient strip in the space you pick

02

Private by design

Everything happens in your browser. Nothing you type, paste or upload is sent anywhere, and it keeps working offline once the page has loaded.

03

What you get

Mixed colour in five spaces, a mixing strip and CSS, with a Copy and a Download button on every result.

  • color-mix()
  • OKLCH
  • Colour

Why it matters

Mixing red and blue in sRGB gives a dull, dark purple because sRGB values aren't proportional to light. Mixing in linear light or OKLab keeps the result bright and even.

CSS color-mix() lets you pick the space, so it's worth seeing the difference before you choose one for hover states, tints and themes.

How to use it

  1. Type or paste your input; the example shows the format.
  2. Press Mix. Results also update as you type.
  3. Read the summary line, then the table, notes or output below it.
  4. Copy or download what you need. Nothing leaves this page.

FAQ

Which space should I mix in?

OKLab for most UI work: perceptually even, no surprise hue shifts. OKLCH keeps chroma high but can swing hue the long way round. sRGB matches older design tools.

Is color-mix() safe to use?

Yes, it has been Baseline since 2023 in all major browsers. Keep a hex fallback first for very old browsers.

Why do OKLCH mixes look more saturated?

OKLCH interpolates hue around the colour wheel instead of cutting straight across, so it avoids the grey middle.

Is my input uploaded?

No. The tool runs in your browser and nothing you type, paste or open is sent anywhere.

Can I rely on the result?

It follows the public specification or formula named on this page and says where it simplifies. Check anything critical against the official tool or documentation before you ship it.

Work with me

Want a site that gets these right?

I build fast, accessible websites and web apps that pass these checks from day one. Tell me about your project and I'll reply personally with honest next steps.

All developer tools · Back to leej.uk