#fffdad
L 0.98 · C 0.1 · H 105
Lemon Zest
A punchy, citrus-inspired palette that radiates energy.
- Mood
- Vivid
- Colors
- 5
- Space
- OKLCH
Lemon Zest, color by color
A punchy, citrus-inspired palette that radiates energy.
#ffec00
L 0.94 · C 0.2 · H 100
#ffd000
L 0.88 · C 0.25 · H 95
#f4b300
L 0.8 · C 0.22 · H 90
#d19200
L 0.7 · C 0.18 · H 85
Create Lemon Zest 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.98 0.10 105)',
'oklch(0.94 0.20 100)',
'oklch(0.88 0.25 95)',
'oklch(0.80 0.22 90)',
'oklch(0.70 0.18 85)',
]);
use PhpColor\Color\Palette\ColorPalette;
$palette = ColorPalette::parse([
'oklch(0.98 0.10 105)',
'oklch(0.94 0.20 100)',
'oklch(0.88 0.25 95)',
'oklch(0.80 0.22 90)',
'oklch(0.70 0.18 85)',
]);
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 Lemon Zest 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();