Closed RobinBol closed 3 years ago
XYZ and RGB do not have direct conversations; I'm not well versed in XYZ theory but if I recall correctly, it's an approximation and won't give you stable results when converting between the two.
Closing as this conversion is lossy in nature (not all color models can be converted cleanly between one another).
Hi, first thanks for this great library!
I have an issue converting an XYZ value to RGB and back, it seems that for some values this works, but for others not. I could not find any range for the XYZ values in the readme (as for the other values), maybe it is related to that?.
This conversion matches (after rounding):
However, the following conversion is a mismatch (and quite some other value):
I have been fiddling with the
color-space
library as well, but that seems to have the same result (https://github.com/colorjs/color-space/issues/48). Is this a bug in the conversion algorithm?