Clay & Ash

Natural pigments from the hearth.

Mood
Earthy
Colors
5
Space
OKLCH

Clay & Ash, color by color

Natural pigments from the hearth.

#fbeae5 L 0.95 · C 0.02 · H 40
#ebc4b3 L 0.85 · C 0.05 · H 45
#d7926b L 0.72 · C 0.1 · H 50
#9f6d4b L 0.58 · C 0.08 · H 55
#614731 L 0.42 · C 0.05 · H 60

Create Clay & Ash 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.95 0.02 40)',
    'oklch(0.85 0.05 45)',
    'oklch(0.72 0.10 50)',
    'oklch(0.58 0.08 55)',
    'oklch(0.42 0.05 60)',
]);
use PhpColor\Color\Palette\ColorPalette; $palette = ColorPalette::parse([ 'oklch(0.95 0.02 40)', 'oklch(0.85 0.05 45)', 'oklch(0.72 0.10 50)', 'oklch(0.58 0.08 55)', 'oklch(0.42 0.05 60)', ]);

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 Clay & Ash 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();