#ffd897
L 0.94 · C 0.12 · H 60
Sunset Strip
Long shadows and high-chroma orange light.
- Mood
- Warm
- Colors
- 5
- Space
- OKLCH
Sunset Strip, color by color
Long shadows and high-chroma orange light.
#ffa03e
L 0.85 · C 0.2 · H 50
#ff5300
L 0.72 · C 0.25 · H 40
#e62e1e
L 0.6 · C 0.22 · H 30
#972430
L 0.45 · C 0.15 · H 20
Create Sunset Strip 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.12 60)',
'oklch(0.85 0.20 50)',
'oklch(0.72 0.25 40)',
'oklch(0.60 0.22 30)',
'oklch(0.45 0.15 20)',
]);
use PhpColor\Color\Palette\ColorPalette;
$palette = ColorPalette::parse([
'oklch(0.94 0.12 60)',
'oklch(0.85 0.20 50)',
'oklch(0.72 0.25 40)',
'oklch(0.60 0.22 30)',
'oklch(0.45 0.15 20)',
]);
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 Sunset Strip 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();