CSS color() function

- WD

The CSS color() function allows the browser to display colors in any color space, such as the P3 color space which can display colors outside of the default sRGB color space.

IE

  1. 5.5 - 10: Not supported
  2. 11: Not supported

Edge

  1. 12 - 91: Not supported
  2. 92: Not supported

Firefox

  1. 2 - 89: Not supported
  2. 90: Not supported
  3. 91 - 92: Not supported

Chrome

  1. 4 - 91: Not supported
  2. 92: Not supported
  3. 93 - 95: Not supported

Safari

  1. 3.1 - 10: Not supported
  2. 10.1 - 14: Partial support
  3. 14.1: Partial support
  4. 15 - TP: Supported

Opera

  1. 9 - 76: Not supported
  2. 77: Not supported

Safari on iOS

  1. 3.2 - 10.2: Not supported
  2. 10.3 - 14.4: Partial support
  3. 14.5: Partial support

Opera Mini

  1. all: Not supported

Android Browser

  1. 2.1 - 4.4.4: Not supported
  2. 92: Not supported

Opera Mobile

  1. 10 - 12.1: Not supported
  2. 64: Not supported

Chrome for Android

  1. 92: Not supported

Firefox for Android

  1. 90: Not supported

UC Browser for Android

  1. 12.12: Not supported

Samsung Internet

  1. 4 - 13.0: Not supported
  2. 14.0: Not supported

QQ Browser

  1. 10.4: Not supported

Baidu Browser

  1. 7.12: Not supported

KaiOS Browser

  1. 2.5: Not supported

For this function to work properly, the device screen and OS also needs to support the color space being used.

Resources:
Chromium implementation bug
Firefox implementation bug
Color generator that uses color() with the P3 color space
WebKit article on using color() with the P3 color space