#000c00
L 0.12 · C 0.08 · H 150
Emerald Night
Deep crystalline greens for mysterious UIs.
- Mood
- Dark
- Colors
- 5
- Space
- OKLCH
Emerald Night, color by color
Deep crystalline greens for mysterious UIs.
#002800
L 0.22 · C 0.12 · H 155
#005b1a
L 0.38 · C 0.18 · H 160
#008b5b
L 0.55 · C 0.15 · H 165
#76d3b4
L 0.8 · C 0.1 · H 170
Create Emerald Night 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.12 0.08 150)',
'oklch(0.22 0.12 155)',
'oklch(0.38 0.18 160)',
'oklch(0.55 0.15 165)',
'oklch(0.80 0.10 170)',
]);
use PhpColor\Color\Palette\ColorPalette;
$palette = ColorPalette::parse([
'oklch(0.12 0.08 150)',
'oklch(0.22 0.12 155)',
'oklch(0.38 0.18 160)',
'oklch(0.55 0.15 165)',
'oklch(0.80 0.10 170)',
]);
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 Emerald Night 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();