CSS color-mix() Playground

Mrs. Lastri mixes two dyes in the wok: write your own color-mix(), the browser computes the colour, and six test cloths on the drying line show the same mix…

Why it matters

One brand variable can become a whole palette (hover, active, tint, a see-through version) in plain CSS, with no Sass and no dozens of hardcoded hex values. Knowing why oklch differs from srgb keeps your mixes from ever looking "muddy".

The key idea

The colour space decides the path of the mix, not just its format

Common mistakes

Try it in this playground