Re: [csswg-drafts] [css-color-4] Linear transformation matrices are very slightly inaccurate (#7675)

>  I see that you're deriving M1 (a.k.a XYZ_TO_LMS) from M0 in your calc_oklabl_matrices.py, but it still seems like that derivation is independent of the sRGB matrices.

All XYZ values assume adaptation to a particular white point.

The D65 white point assumed in  the @bottosson post is the ASTM value which is not identical to the value used throughout CSS Color 4. The difference is only in the 5th decimal place, but this was already enough to give significant deviation from the OKLab neutral axis for neutral greys (in sRGB, display-p3, and any other space with a D65 whitepoint) until we fixed it.

Which we did by taking the published sRGB to LMS matrix and factoring out the (revised) sRGB to XYZ-D65 part, giving a new M1.

-- 
GitHub Notification of comment by svgeesus
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7675#issuecomment-1236923530 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Monday, 5 September 2022 12:12:09 UTC