Mossy Rock

Tones of granite and damp forest floor.

Mood
Earthy
Colors
5
Space
OKLCH

Mossy Rock, color by color

Tones of granite and damp forest floor.

#dddfd8 L 0.9 · C 0.01 · H 120
#b1bca1 L 0.78 · C 0.04 · H 125
#76905c L 0.62 · C 0.08 · H 130
#3d6b32 L 0.48 · C 0.1 · H 140
#193b22 L 0.32 · C 0.06 · H 150

Create Mossy Rock 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.90 0.01 120)',
    'oklch(0.78 0.04 125)',
    'oklch(0.62 0.08 130)',
    'oklch(0.48 0.10 140)',
    'oklch(0.32 0.06 150)',
]);
use PhpColor\Color\Palette\ColorPalette; $palette = ColorPalette::parse([ 'oklch(0.90 0.01 120)', 'oklch(0.78 0.04 125)', 'oklch(0.62 0.08 130)', 'oklch(0.48 0.10 140)', 'oklch(0.32 0.06 150)', ]);

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 Mossy Rock 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();