Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why d3 uses illuminant D50 instead of D65? #120

Open
michkowalczuk opened this issue Jan 3, 2024 · 1 comment
Open

Why d3 uses illuminant D50 instead of D65? #120

michkowalczuk opened this issue Jan 3, 2024 · 1 comment

Comments

@michkowalczuk
Copy link

michkowalczuk commented Jan 3, 2024

@mbostock ,
What is the reason that you decided to use illuminant D50 instead of D65 in d3?

CIE standard illuminant D65 values are:

Xn: 0.950470,
Yn: 1,
Zn: 1.088830

You use the following D50 values:

d3-color/src/lab.js

Lines 7 to 9 in 71c7f10

Xn = 0.96422,
Yn = 1,
Zn = 0.82521,

For example chrome.js uses D65:
https://github.com/gka/chroma.js/blob/cd1b3c0926c7a85cbdc3b1453b3a94006de91a92/src/io/lab/lab-constants.js#L6-L9

@danburzo
Copy link
Contributor

danburzo commented Jan 3, 2024

D50 is the illuminant used in CSS for lab() / lch() colors, as well as in graphics applications such as Adobe Photoshop. See also: gka/chroma.js#278

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants