0% · #ffdaad
L 0.92 · C 0.08 · H 65
Sun Baked
A linear gradient sweeping from pastel yellow to deep orange, interpolated in OKLCH across 3 stops so the midpoint stays vivid instead of greying out.
- Type
- Linear
- Stops
- 3
- Space
- OKLCH
- Direction
- 90deg
The stops behind Sun Baked
Endpoints sit closest to navajowhite and sienna.
50% · #f0834e
L 0.72 · C 0.15 · H 45
100% · #ac543f
L 0.55 · C 0.12 · H 35
Create Sun Baked 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.08 65)',
'oklch(0.72 0.15 45)',
'oklch(0.55 0.12 35)',
);
use PhpColor\Color\Gradient\Gradient;
$gradient = Gradient::linear(
90,
'oklch(0.92 0.08 65)',
'oklch(0.72 0.15 45)',
'oklch(0.55 0.12 35)',
);
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 Sun Baked 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.08 65), oklch(0.72 0.15 45), oklch(0.55 0.12 35));
background: linear-gradient(90deg, oklch(0.92 0.08 65), oklch(0.72 0.15 45), oklch(0.55 0.12 35));