Convert to CIE XYZ in PHP
Any color converts with to(); the result is CIE XYZ, an object with its own channels.
<?php
$color = Color::parse('#3b82f6')->to('xyz-d65');
$color->getChannels();
// ['x' => 0.2641, 'y' => 0.2355, 'z' => 0.9032]
$color = Color::parse('#3b82f6')->to('xyz-d65');
$color->getChannels();
// ['x' => 0.2641, 'y' => 0.2355, 'z' => 0.9032]