0% · #ffcf71
L 0.92 · C 0.15 · H 65
Sunset Glow
A radial gradient sweeping from pastel yellow to deep orange, interpolated in OKLCH across 3 stops so the midpoint stays vivid instead of greying out.
- Type
- Radial
- Stops
- 3
- Space
- OKLCH
- Direction
- circle at center
The stops behind Sunset Glow
Endpoints sit closest to navajowhite and maroon.
50% · #f84713
L 0.65 · C 0.22 · H 35
100% · #6c1517
L 0.35 · C 0.12 · H 25
Create Sunset Glow 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.92 0.15 65)',
'oklch(0.65 0.22 35)',
'oklch(0.35 0.12 25)',
);
use PhpColor\Color\Gradient\Gradient;
$gradient = Gradient::radial(
'oklch(0.92 0.15 65)',
'oklch(0.65 0.22 35)',
'oklch(0.35 0.12 25)',
);
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 Sunset Glow 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.92 0.15 65), oklch(0.65 0.22 35), oklch(0.35 0.12 25));
background: radial-gradient(circle at center, oklch(0.92 0.15 65), oklch(0.65 0.22 35), oklch(0.35 0.12 25));