0% · #72f896
L 0.88 · C 0.18 · H 150
Emerald City
A pastel radial gradient in green tones, interpolated in OKLCH across 3 stops so the ramp stays even from end to end.
- Type
- Radial
- Stops
- 3
- Space
- OKLCH
- Direction
- circle at center
The stops behind Emerald City
Endpoints sit closest to palegreen and black.
50% · #007814
L 0.45 · C 0.25 · H 160
100% · #001f08
L 0.18 · C 0.12 · H 170
Create Emerald City in PHP
Build a radial gradient from the catalog stops, then let PHPColor assign their positions.
<?php
use PhpColor\Color\Gradient\Gradient;
$gradient = Gradient::radial(
'oklch(0.88 0.18 150)',
'oklch(0.45 0.25 160)',
'oklch(0.18 0.12 170)',
);
use PhpColor\Color\Gradient\Gradient;
$gradient = Gradient::radial(
'oklch(0.88 0.18 150)',
'oklch(0.45 0.25 160)',
'oklch(0.18 0.12 170)',
);
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 Emerald City 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: radial-gradient(circle at center, oklch(0.88 0.18 150), oklch(0.45 0.25 160), oklch(0.18 0.12 170));
background: radial-gradient(circle at center, oklch(0.88 0.18 150), oklch(0.45 0.25 160), oklch(0.18 0.12 170));