Charcoal & Ice

High contrast grays and sharp frost.

Mood
Dark
Colors
5
Space
OKLCH

Charcoal & Ice, color by color

High contrast grays and sharp frost.

#040609 L 0.12 · C 0.01 · H 250
#212a33 L 0.28 · C 0.02 · H 250
#495766 L 0.45 · C 0.03 · H 250
#699fc5 L 0.68 · C 0.08 · H 240
#c4ecff L 0.92 · C 0.05 · H 230

Create Charcoal & Ice 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.12 0.01 250)',
    'oklch(0.28 0.02 250)',
    'oklch(0.45 0.03 250)',
    'oklch(0.68 0.08 240)',
    'oklch(0.92 0.05 230)',
]);
use PhpColor\Color\Palette\ColorPalette; $palette = ColorPalette::parse([ 'oklch(0.12 0.01 250)', 'oklch(0.28 0.02 250)', 'oklch(0.45 0.03 250)', 'oklch(0.68 0.08 240)', 'oklch(0.92 0.05 230)', ]);

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 Charcoal & Ice 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 Charcoal & Ice