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