Skip to content
ZeroServer.tools

CSS color-mix() Generator

Generate CSS color-mix() declarations. Mix two colors in different color spaces with a configurable ratio and preview the result.

50% color 1 / 50% color 2
Preview

Color 1 · Mixed · Color 2

CSS Output
background-color: color-mix(in srgb, #ff0000 50%, #0000ff);

Browser support: Chrome 111+, Firefox 113+, Safari 16.2+

About CSS color-mix()

The CSS color-mix() function lets you mix two colors in a specified color space and ratio directly in CSS, without JavaScript or preprocessors. Different color spaces produce different mixing results — oklch andoklab are perceptually uniform, producing visually smooth gradients, while srgb matches what canvas/WebGL use. The percentage specifies how much of the first color to use; the remainder comes from the second.

Private & free — this tool runs entirely in your browser.

Recommended: Kinsta Fast managed hosting — up to $500 + 10% recurring.affiliate

Related Design & CSS tools