#e7f8de
L 0.96 · C 0.04 · H 135
Matcha Tea
Soft, creamy greens with a calming, organic presence.
- Mood
- Earthy
- Colors
- 5
- Space
- OKLCH
Matcha Tea, color by color
Soft, creamy greens with a calming, organic presence.
#c2e59f
L 0.88 · C 0.1 · H 130
#98be49
L 0.75 · C 0.15 · H 125
#7d9034
L 0.62 · C 0.12 · H 120
#5c632a
L 0.48 · C 0.08 · H 115
Create Matcha Tea 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.96 0.04 135)',
'oklch(0.88 0.10 130)',
'oklch(0.75 0.15 125)',
'oklch(0.62 0.12 120)',
'oklch(0.48 0.08 115)',
]);
use PhpColor\Color\Palette\ColorPalette;
$palette = ColorPalette::parse([
'oklch(0.96 0.04 135)',
'oklch(0.88 0.10 130)',
'oklch(0.75 0.15 125)',
'oklch(0.62 0.12 120)',
'oklch(0.48 0.08 115)',
]);
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 Matcha Tea 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();