Convert to sRGB in PHP
Any color converts with to(); the result is sRGB, an object with its own channels.
<?php
$color = Color::parse('#3b82f6')->to('srgb');
$color->getChannels();
// ['r' => 0.2314, 'g' => 0.5098, 'b' => 0.9647]
$color = Color::parse('#3b82f6')->to('srgb');
$color->getChannels();
// ['r' => 0.2314, 'g' => 0.5098, 'b' => 0.9647]