My library can convert to/from Lab..
for example:
php code:
use MischiefCollective\ColorJizz\Formats\Hex;
// im not sure why you'd ever want to do this
echo Hex::fromString('CC0000')->toCIELab()->toHSV()->toRGB()->toHex()->toString(); // CC0000
// or..
use MischiefCollective\ColorJizz\Formats\CIELab;
echo CIELab::create(53, 80, 69)->toHex()->toString(); // FE0000
But at the moment, converting between RGB and CMYK and back first uses CMY internally.
for example..
php code:
class CMY {
function toRGB() {
return $this->toCMY()->toCMYK();
}
}
class RGB {
function toCMYK() {
return $this->toCMY()->toRGB();
}
}
I wonder if I can find a formula that does this all in a different way.. Hm.