#ffeeb4
L 0.96 · C 0.08 · H 85
Sahara Gold
Shifting dunes and blazing desert sun.
- Mood
- Earthy
- Colors
- 5
- Space
- OKLCH
Sahara Gold, color by color
Shifting dunes and blazing desert sun.
#ffcb55
L 0.88 · C 0.15 · H 80
#fc9200
L 0.75 · C 0.22 · H 75
#c86c00
L 0.62 · C 0.18 · H 70
#814300
L 0.45 · C 0.12 · H 65
Create Sahara Gold 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.96 0.08 85)',
'oklch(0.88 0.15 80)',
'oklch(0.75 0.22 75)',
'oklch(0.62 0.18 70)',
'oklch(0.45 0.12 65)',
]);
use PhpColor\Color\Palette\ColorPalette;
$palette = ColorPalette::parse([
'oklch(0.96 0.08 85)',
'oklch(0.88 0.15 80)',
'oklch(0.75 0.22 75)',
'oklch(0.62 0.18 70)',
'oklch(0.45 0.12 65)',
]);
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 Gold 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();