Formalize that the default color space for 2D canvases and ImageData is sRGB. Clarify that 2D canvas is fully color managed (that all inputs are converted to the canvas color space). These were previously convention and not clearly specified. Add parameters to specify a non-sRGB color space when creating a 2D canvas or an ImageData. Add support for the Display P3 color space for these parameters.


Content displayed by 2D canvas is currently limited to the sRGB color space, which is less than the capabilities of modern displays and cameras. This feature allows creating a 2D canvas that is in the display-p3 color space. This also clears up several points of ambiguity about the color behavior 2D canvas. This has been a frequent feature request.


Specification link

Unknown standards status - check spec link for status

Status in Chromium


Enabled by default (tracking bug)

Consensus & Standardization

After a feature ships in Chrome, the values listed here are not guaranteed to be up to date.


Search tags

canvas, display-p3, color space,

Last updated on 2021-12-15