Convert to OKLCH in PHP
Any color converts with to(); the result is OKLCH, an object with its own channels.
<?php
$color = Color::parse('#3b82f6')->to('oklch');
$color->getChannels();
// ['l' => 0.6231, 'c' => 0.188, 'h' => 259.8145]
$color = Color::parse('#3b82f6')->to('oklch');
$color->getChannels();
// ['l' => 0.6231, 'c' => 0.188, 'h' => 259.8145]