Qix-/color-convert








Do you want to work on this issue?
You can request for a bounty in order to promote it!
Inaccurate xyz to lab. #100
lijiaqigreat posted onGitHub
The constants used in xyz to lab conversions are not accurate... As an example, places where we use 0.008856 are actually supposed to be (6/29)^3. There are a lot more constants that are not accurate. I didn't go through all of them.
This has caused problems for me because I'm building a color-related library that's implemented in multiple languages. It converts rgb to lab color space, do some basic arithmetic and then convert back to rgb. (Yes, I used the xyz.lab.raw
version) For javascript, I used color-convert as a dependency. And this has produced inconsistent results for different implementations.