Convert to OKLab in PHP
Any color converts with to(); the result is OKLab, an object with its own channels.
<?php
$color = Color::parse('#3b82f6')->to('oklab');
$color->getChannels();
// ['l' => 0.6231, 'a' => -0.0332, 'b' => -0.1851]
$color = Color::parse('#3b82f6')->to('oklab');
$color->getChannels();
// ['l' => 0.6231, 'a' => -0.0332, 'b' => -0.1851]