0% · #c7ecf3
L 0.92 · C 0.04 · H 210
Ice
A pastel linear gradient in cyan tones, interpolated in OKLCH across 3 stops so the ramp stays even from end to end.
- Type
- Linear
- Stops
- 3
- Space
- OKLCH
- Direction
- 90deg
The stops behind Ice
Endpoints sit closest to powderblue and darkslategray.
50% · #00b5ce
L 0.7 · C 0.14 · H 210
100% · #006374
L 0.45 · C 0.1 · H 210
Create Ice in PHP
Build a linear gradient from the catalog stops, then let PHPColor assign their positions.
<?php
use PhpColor\Color\Gradient\Gradient;
$gradient = Gradient::linear(
90,
'oklch(0.92 0.04 210)',
'oklch(0.70 0.14 210)',
'oklch(0.45 0.10 210)',
);
use PhpColor\Color\Gradient\Gradient;
$gradient = Gradient::linear(
90,
'oklch(0.92 0.04 210)',
'oklch(0.70 0.14 210)',
'oklch(0.45 0.10 210)',
);
Inspect and convert its stops
Each stop remains a color object, ready for conversion, contrast checks, or further manipulation.
<?php
foreach ($gradient->getStops() as $stop) {
echo $stop->color->to('oklch')->toCss();
}
foreach ($gradient->getStops() as $stop) {
echo $stop->color->to('oklch')->toCss();
}
Format Ice for CSS
Serialize the gradient directly, or choose a wide-gamut notation for every stop.
<?php
$css = $gradient->toCss();
$p3 = $gradient->toCss('display-p3');
$css = $gradient->toCss();
$p3 = $gradient->toCss('display-p3');
background: linear-gradient(90deg, oklch(0.92 0.04 210), oklch(0.70 0.14 210), oklch(0.45 0.10 210));
background: linear-gradient(90deg, oklch(0.92 0.04 210), oklch(0.70 0.14 210), oklch(0.45 0.10 210));