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