color-gamut media queryBaseline · Widely available
The color-gamut media query sets styles based on the colors a device can display.
Supported in all major browsers for at least 30 months — safe to use without fallbacks. Baseline since Feb 14, 2023. Widely available since Aug 14, 2025.
Browser support
DesktopChrome
1–57Not supported
58+Supportedsince Apr 19, 2017
Current: 155Edge
12–18Not supported
79+Supportedsince Jan 15, 2020
Current: 154Firefox
1–109Not supported
110+Supportedsince Feb 14, 2023
Current: 157Safari
1–9.1Not supported
10+Supportedsince Sep 20, 2016
Current: 27MobileChrome Android
18–57Not supported
58+Supportedsince Apr 25, 2017
Current: 155Firefox Android
4–109Not supported
110+Supportedsince Feb 14, 2023
Current: 157Safari iOS
1–9.3Not supported
10+Supportedsince Sep 13, 2016
Current: 27How to use
This feature is Baseline widely available — use it freely, no fallback needed.
Example
Full syntax and examples are on MDN: color-gamut.
Feature detection
There’s no simple runtime check for this feature; rely on the support table and test in your target browsers.
Documentation (MDN)
Specification
Sub-features
Support for each part of the feature (4). The overall table above shows when the whole feature works.
| Sub-feature | Chrome | Edge | Firefox | Safari | Chrome Android | Firefox Android | Safari iOS |
|---|---|---|---|---|---|---|---|
| @media.color-gamut | 58 | 79 | 110 | 10 | 58 | 110 | 10 |
| @media.color-gamut.p3 | 58 | 79 | 110 | 10 | 58 | 110 | 10 |
| @media.color-gamut.rec2020 | 58 | 79 | 110 | 10 | 58 | 110 | 10 |
| @media.color-gamut.srgb | 58 | 79 | 110 | 10 | 58 | 110 | 10 |