Lavender Dusk

Violets and blues at the end of the day.

Mood
Cool
Colors
6
Space
OKLCH

Lavender Dusk, color by color

Violets and blues at the end of the day.

#e4d6ff L 0.9 · C 0.06 · H 300
#bea4ff L 0.78 · C 0.14 · H 295
#8477f3 L 0.64 · C 0.18 · H 285
#4446cb L 0.48 · C 0.2 · H 275
#092482 L 0.32 · C 0.16 · H 265
#001339 L 0.2 · C 0.08 · H 260

Create Lavender Dusk 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.06 300)',
    'oklch(0.78 0.14 295)',
    'oklch(0.64 0.18 285)',
    'oklch(0.48 0.20 275)',
    'oklch(0.32 0.16 265)',
    'oklch(0.20 0.08 260)',
]);
use PhpColor\Color\Palette\ColorPalette; $palette = ColorPalette::parse([ 'oklch(0.90 0.06 300)', 'oklch(0.78 0.14 295)', 'oklch(0.64 0.18 285)', 'oklch(0.48 0.20 275)', 'oklch(0.32 0.16 265)', 'oklch(0.20 0.08 260)', ]);

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 Lavender Dusk 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();

Keep exploring

Build on Lavender Dusk