coderef

color-mix() with three or more colorsLimited availability

The color-mix() CSS function accepts three or more colors.

Not yet supported in all major browsers — check the table and provide a fallback.

Browser support

DesktopChrome
✕Not supportedup to 155
Current: 155
Edge
✕Not supportedup to 154
Current: 154
Firefox
1–149Not supported
150+Supportedsince Apr 21, 2026
Current: 157
Safari
1–26.6Not supported
27+Supportedsince Sep 14, 2026
Current: 27
MobileChrome Android
✕Not supportedup to 155
Current: 155
Firefox Android
4–149Not supported
150+Supportedsince Apr 21, 2026
Current: 157
Safari iOS
1–26.6Not supported
27+Supportedsince Sep 14, 2026
Current: 27

How to use

Not supported in Chrome, Edge, Chrome Android. Use feature detection below and provide a fallback (or a polyfill) for those browsers.

Example

Full syntax and examples are on MDN — see the links below.

Feature detection

CSS · check before using
@supports (color: color-mix(in srgb, red, blue)) {
  /* styles that use color-mix */
}

/* or in JavaScript */
if (CSS.supports("color", "color-mix(in srgb, red, blue)")) {
  // use it
}