color()
Newly available since 2023-05-09
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.
Learning resources on MDN
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