No Login Data Private Local Save

CSS color‑mix() Visualizer - Online Blend in sRGB & OKLCH

8
0
0
0

CSS color-mix() Visualizer

Blend two colors interactively – see the live result in sRGB, OKLCH, and many other CSS color spaces.

50%
Color 1
#3b82f6
Result
#9e5ea6
Color 2
#ef4444
Blended Color Codes
HEX:
#9e5ea6
RGB:
rgb(158, 94, 166)
HSL:
hsl(293, 30%, 51%)
CSS color-mix():
color-mix(in srgb, #3b82f6 50%, #ef4444)

Frequently Asked Questions

color-mix() is a CSS functional notation that blends two colors together. It takes a color space, two color values, and an optional percentage to control the mix ratio. It allows dynamic color manipulation directly in CSS, without preprocessors.

sRGB is the standard color space for web displays; mixing two colors in sRGB often results in desaturated mid-tones. OKLCH (and OKLAB) are perceptually uniform spaces – blends appear more vibrant and natural, especially when mixing complementary colors. This tool lets you preview both instantly.

The slider sets the proportion of Color 1 in the final mix. At 0%, you see pure Color 2; at 100%, pure Color 1. The CSS function used is color-mix(in space, color2, color1 X%), which means Color 1 takes X%, Color 2 takes the rest.

color-mix() is part of CSS Color Level 5. It is supported in all modern browsers: Chrome 111+, Firefox 113+, Safari 16.2+, and Edge 111+. If your browser doesn't support it, this tool falls back to a simple sRGB interpolation.

Yes, color-mix() works with any CSS color type, including rgba(), hsla(), and transparent. The alpha channel is blended in the same color space, but note that blending in different spaces can yield different results.