Skip to content

[css-color] D50 mismatch in Lab ↔ sRGB algorithms #2492

@danburzo

Description

@danburzo

In Section 17. Sample code for color conversions of the CSS Color Module Level 4 spec, there's a discrepancy with the D50 white point values.

In the XYZ ↔ Lab conversion code, it's assumed to be [0.9642, 1.0000, 0.8249] (as specified by the ICC spec).

However, the D50 ↔ D65 chromatic adaptation uses Bradford matrices from this page, which have been computed for D50 being [0.96422, 1.00000, 0.82521].

I think the correct approach is to use the ICC-defined D50 throughout, no?

(Also, I'm not clear on why the ICC value for the D50 white point differs from the generally accepted one. e.g. Matlab).

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions