color()
The color() function picks a color from a given color space. Wide gamut color spaces like display-p3 allow showing more vibrant and saturated colors than the standard srgb color space.
Status
Baseline Widely Available (since 2025-11-09)
MDN documentation
Specifications
Browser support (view on caniuse.com)
- Chrome 111 Released on 2023-03-07
- Chrome Android 111 Released on 2023-03-07
- Edge 111 Released on 2023-03-13
- Firefox 113 Released on 2023-05-09
- Firefox for Android 113 Released on 2023-05-09
- Safari 15 Released on 2021-09-20
- Safari on iOS 15 Released on 2021-09-20
Developer signals
- State of CSS 2025: usage/favorite_new_features question
- State of CSS 2025: usage/css_missing_features question
- State of CSS 2025: usage/css_interoperability_features question
- State of CSS 2025: reading_list/reading_list question
- State of CSS 2025: features/all_features question
- State of CSS 2025: colors/colors_pain_points question
- State of CSS 2024: reading_list/reading_list question
- State of CSS 2024: features/all_features question
Usage (according to Chrome Platform Status)
~0.860% of page loads. More data at chromestatus.com.
Interop
- Included in Interop 2022
- Included in Interop 2023
Web Platform Tests (WPT)
View the latest WPT test results for this featureView as JSON | Edit this feature | Report an issue | Web-features entry: source, dist