#fffb99
L 0.98 · C 0.12 · H 100
Lemon & Mint
A refreshing zing of cold citrus.
- Mood
- Vivid
- Colors
- 5
- Space
- OKLCH
Lemon & Mint, color by color
A refreshing zing of cold citrus.
#d6f55b
L 0.92 · C 0.18 · H 120
#74ef57
L 0.85 · C 0.22 · H 140
#5dc879
L 0.75 · C 0.15 · H 150
#42926b
L 0.6 · C 0.1 · H 160
Create Lemon & Mint 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.12 100)',
'oklch(0.92 0.18 120)',
'oklch(0.85 0.22 140)',
'oklch(0.75 0.15 150)',
'oklch(0.60 0.10 160)',
]);
use PhpColor\Color\Palette\ColorPalette;
$palette = ColorPalette::parse([
'oklch(0.98 0.12 100)',
'oklch(0.92 0.18 120)',
'oklch(0.85 0.22 140)',
'oklch(0.75 0.15 150)',
'oklch(0.60 0.10 160)',
]);
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 & Mint 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();