0% · #e7ffe2
L 0.98 · C 0.05 · H 140
Fresh Start
A pastel linear gradient in green tones, interpolated in OKLCH across 2 stops so the ramp stays even from end to end.
- Type
- Linear
- Stops
- 2
- Space
- OKLCH
- Direction
- 135deg
The stops behind Fresh Start
Endpoints sit closest to honeydew and aquamarine.
100% · #b6f6d2
L 0.92 · C 0.08 · H 160
Create Fresh Start 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(
135,
'oklch(0.98 0.05 140)',
'oklch(0.92 0.08 160)',
);
use PhpColor\Color\Gradient\Gradient;
$gradient = Gradient::linear(
135,
'oklch(0.98 0.05 140)',
'oklch(0.92 0.08 160)',
);
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 Fresh Start 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(135deg, oklch(0.98 0.05 140), oklch(0.92 0.08 160));
background: linear-gradient(135deg, oklch(0.98 0.05 140), oklch(0.92 0.08 160));