Slate & Teal

A balanced mix of industrial grays and deep sea teals.

Mood
Cool
Colors
5
Space
OKLCH

Slate & Teal, color by color

A balanced mix of industrial grays and deep sea teals.

#d6e9ea L 0.92 · C 0.02 · H 200
#6dbebe L 0.75 · C 0.08 · H 195
#008b85 L 0.55 · C 0.15 · H 190
#004c43 L 0.35 · C 0.12 · H 185
#002017 L 0.2 · C 0.08 · H 180

Create Slate & Teal 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.92 0.02 200)',
    'oklch(0.75 0.08 195)',
    'oklch(0.55 0.15 190)',
    'oklch(0.35 0.12 185)',
    'oklch(0.20 0.08 180)',
]);
use PhpColor\Color\Palette\ColorPalette; $palette = ColorPalette::parse([ 'oklch(0.92 0.02 200)', 'oklch(0.75 0.08 195)', 'oklch(0.55 0.15 190)', 'oklch(0.35 0.12 185)', 'oklch(0.20 0.08 180)', ]);

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 Slate & Teal 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 Slate & Teal