#d4dcbf
L 0.88 · C 0.04 · H 120
Olive Grove
Serious, sophisticated greens and deep wood browns.
- Mood
- Earthy
- Colors
- 5
- Space
- OKLCH
Olive Grove, color by color
Serious, sophisticated greens and deep wood browns.
#a2b77f
L 0.75 · C 0.08 · H 125
#628835
L 0.58 · C 0.12 · H 130
#34591b
L 0.42 · C 0.1 · H 135
#10280b
L 0.25 · C 0.06 · H 140
Create Olive Grove 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.88 0.04 120)',
'oklch(0.75 0.08 125)',
'oklch(0.58 0.12 130)',
'oklch(0.42 0.10 135)',
'oklch(0.25 0.06 140)',
]);
use PhpColor\Color\Palette\ColorPalette;
$palette = ColorPalette::parse([
'oklch(0.88 0.04 120)',
'oklch(0.75 0.08 125)',
'oklch(0.58 0.12 130)',
'oklch(0.42 0.10 135)',
'oklch(0.25 0.06 140)',
]);
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 Olive Grove 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();