$c = Color::parse('#3a86ff');
→
oklch(0.64 0.2 260)
Write PHPColor code, run it instantly, and inspect the result. PHP 8.4, ready to use with no installation.
$c = Color::parse('#3a86ff');
Color::mix($a, $b, 0.5, 'oklab');
ColorPalette::tints($c, 5);
$c->triadic();
Gradient::linear(90, $a, $b);
Color::contrast($fg, $bg);
$sim->simulate($c);
$palette->toCssVariables();