Convert to Rec. 2020 in PHP
Any color converts with to(); the result is Rec. 2020, an object with its own channels.
<?php
$color = Color::parse('#3b82f6')->to('rec2020');
$color->getChannels();
// ['r' => 0.3558, 'g' => 0.4555, 'b' => 0.9201]
$color = Color::parse('#3b82f6')->to('rec2020');
$color->getChannels();
// ['r' => 0.3558, 'g' => 0.4555, 'b' => 0.9201]