Desert Sand

A linear gradient sweeping from pastel yellow to mid amber, interpolated in OKLCH across 3 stops so the midpoint stays vivid instead of greying out.

Type
Linear
Stops
3
Space
OKLCH
Direction
135deg

The stops behind Desert Sand

Endpoints sit closest to blanchedalmond and peru.

0% · #ffeecd L 0.96 · C 0.05 · H 75
50% · #fab36d L 0.82 · C 0.12 · H 65
100% · #b5825f L 0.65 · C 0.08 · H 55

Create Desert Sand 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.96 0.05 75)',
    'oklch(0.82 0.12 65)',
    'oklch(0.65 0.08 55)',
);
use PhpColor\Color\Gradient\Gradient; $gradient = Gradient::linear( 135, 'oklch(0.96 0.05 75)', 'oklch(0.82 0.12 65)', 'oklch(0.65 0.08 55)', );

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 Sand 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.96 0.05 75), oklch(0.82 0.12 65), oklch(0.65 0.08 55));
background: linear-gradient(135deg, oklch(0.96 0.05 75), oklch(0.82 0.12 65), oklch(0.65 0.08 55));

Keep exploring

Build on Desert Sand