#ffdbca
L 0.92 · C 0.05 · H 45
Desert Twilight
Dusk colors from the high desert horizons.
- Mood
- Warm
- Colors
- 5
- Space
- OKLCH
Desert Twilight, color by color
Dusk colors from the high desert horizons.
#fcae93
L 0.82 · C 0.1 · H 40
#ec785b
L 0.7 · C 0.15 · H 35
#8c5ad3
L 0.58 · C 0.18 · H 300
#42428c
L 0.42 · C 0.12 · H 280
Create Desert Twilight 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.92 0.05 45)',
'oklch(0.82 0.10 40)',
'oklch(0.70 0.15 35)',
'oklch(0.58 0.18 300)',
'oklch(0.42 0.12 280)',
]);
use PhpColor\Color\Palette\ColorPalette;
$palette = ColorPalette::parse([
'oklch(0.92 0.05 45)',
'oklch(0.82 0.10 40)',
'oklch(0.70 0.15 35)',
'oklch(0.58 0.18 300)',
'oklch(0.42 0.12 280)',
]);
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 Desert Twilight 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();