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
- Type or paste your input; the example shows the format.
- Press Mix. Results also update as you type.
- Read the summary line, then the table, notes or output below it.
- 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.