Stormy Weather

Moody grays and slate blues for atmospheric designs.

Mood
Cool
Colors
5
Space
OKLCH

Stormy Weather, color by color

Moody grays and slate blues for atmospheric designs.

#d6dfec L 0.9 · C 0.02 · H 260
#99b0ce L 0.75 · C 0.05 · H 255
#557ea8 L 0.58 · C 0.08 · H 250
#30506c L 0.42 · C 0.06 · H 245
#152b3b L 0.28 · C 0.04 · H 240

Create Stormy Weather 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.02 260)',
    'oklch(0.75 0.05 255)',
    'oklch(0.58 0.08 250)',
    'oklch(0.42 0.06 245)',
    'oklch(0.28 0.04 240)',
]);
use PhpColor\Color\Palette\ColorPalette; $palette = ColorPalette::parse([ 'oklch(0.90 0.02 260)', 'oklch(0.75 0.05 255)', 'oklch(0.58 0.08 250)', 'oklch(0.42 0.06 245)', 'oklch(0.28 0.04 240)', ]);

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 Stormy Weather 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 Stormy Weather