Convert to CIE Lab in PHP
Any color converts with to(); the result is CIE Lab, an object with its own channels.
<?php
$color = Color::parse('#3b82f6')->to('lab');
$color->getChannels();
// ['l' => 54.6185, 'a' => 8.7652, 'b' => -65.7902]
$color = Color::parse('#3b82f6')->to('lab');
$color->getChannels();
// ['l' => 54.6185, 'a' => 8.7652, 'b' => -65.7902]