0% · #ffdea9
L 0.92 · C 0.08 · H 75
Desert Heat
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
- 180deg
The stops behind Desert Heat
Endpoints sit closest to navajowhite and darkred.
50% · #ff8918
L 0.75 · C 0.18 · H 55
100% · #96290a
L 0.45 · C 0.15 · H 35
Create Desert Heat 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(
180,
'oklch(0.92 0.08 75)',
'oklch(0.75 0.18 55)',
'oklch(0.45 0.15 35)',
);
use PhpColor\Color\Gradient\Gradient;
$gradient = Gradient::linear(
180,
'oklch(0.92 0.08 75)',
'oklch(0.75 0.18 55)',
'oklch(0.45 0.15 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 Desert Heat 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(180deg, oklch(0.92 0.08 75), oklch(0.75 0.18 55), oklch(0.45 0.15 35));
background: linear-gradient(180deg, oklch(0.92 0.08 75), oklch(0.75 0.18 55), oklch(0.45 0.15 35));