Convert colors to and from various color spaces. Just one header to include.
Supported color space:
- linear RGB
- sRGB
- HSV
- CIELab
- CIELuv
- XYZ
- more
Credits go to http://brucelindbloom.com/ He collected formulas and constants that I've used in the implementation.