Sahara

Vast desert horizons -- golden sands and deep shadows.

Mood
Earthy
Colors
5
Space
OKLCH

Sahara, color by color

Vast desert horizons -- golden sands and deep shadows.

#ffe6ae L 0.94 · C 0.08 · H 80
#ffbe4d L 0.85 · C 0.15 · H 75
#ea8100 L 0.7 · C 0.2 · H 70
#ab5a00 L 0.55 · C 0.15 · H 65
#6d3800 L 0.4 · C 0.1 · H 60

Create Sahara in PHP

Parse the catalog values as one ordered scale. The input remains readable while PHPColor normalizes every color.

<?php

use PhpColor\Color\Palette\ColorPalette;

$palette = ColorPalette::parse([
    'oklch(0.94 0.08 80)',
    'oklch(0.85 0.15 75)',
    'oklch(0.70 0.20 70)',
    'oklch(0.55 0.15 65)',
    'oklch(0.40 0.10 60)',
]);
use PhpColor\Color\Palette\ColorPalette; $palette = ColorPalette::parse([ 'oklch(0.94 0.08 80)', 'oklch(0.85 0.15 75)', 'oklch(0.70 0.20 70)', 'oklch(0.55 0.15 65)', 'oklch(0.40 0.10 60)', ]);

Inspect every palette color

Palette operations preserve order, so iteration and conversion produce values in the same visual sequence.

<?php

foreach ($palette->to('oklch') as $color) {
    echo $color->toCss().PHP_EOL;
}
foreach ($palette->to('oklch') as $color) { echo $color->toCss().PHP_EOL; }

Format Sahara for CSS

Export hexadecimal values for compact tokens or convert the full palette to perceptual CSS notation.

<?php

$hex = $palette->toHex();
$css = $palette->to('oklch')->toCss();
$hex = $palette->toHex(); $css = $palette->to('oklch')->toCss();