SlateGray

A mid, cool blue -- the dependable foundation of trustworthy interfaces.

Hex
#708090
sRGB
rgb(112 128 144)
OKLCH
oklch(0.5925 0.0309 248.3)

SlateGray is a standard CSS named color with the canonical value #708090.

Create SlateGray in PHP

Parse the catalog’s canonical value once, then keep the resulting color object throughout the rest of your code.

<?php

use PhpColor\Color\Color;

$slategray = Color::parse('#708090');
use PhpColor\Color\Color; $slategray = Color::parse('#708090');

ColorInterface

$slategray

#708090 · oklch(0.5925 0.0309 248.3)

Build a SlateGray harmony

tetradic() keeps SlateGray and adds three partners at equal quarter-turns around the OKLCH hue wheel.

<?php

$harmony = $slategray->tetradic();

foreach ($harmony as $color) {
    echo $color->toHex().PHP_EOL;
}
$harmony = $slategray->tetradic(); foreach ($harmony as $color) { echo $color->toHex().PHP_EOL; }
  1. 0#708090
  2. 1#8b7784
  3. 2#8b7b6b
  4. 3#6f8477
SlateGray and its three generated partners

Generate a SlateGray scale

Keep the original hue and chroma, then vary OKLCH lightness to produce perceptually ordered steps.

<?php

$oklch = $slategray->to('oklch');

foreach ([0.97, 0.92, 0.84, 0.74, 0.66, 0.58, 0.48, 0.40, 0.32, 0.24, 0.16] as $lightness) {
    $step = $oklch->withChannel('l', $lightness);
}
$oklch = $slategray->to('oklch'); foreach ([0.97, 0.92, 0.84, 0.74, 0.66, 0.58, 0.48, 0.40, 0.32, 0.24, 0.16] as $lightness) { $step = $oklch->withChannel('l', $lightness); }
50
100
200
300
400
500
600
700
800
900
950
Explore named color scales →

Format SlateGray for the web

The same object can emit a compact Hex value, an sRGB CSS function, or its perceptual OKLCH coordinates.

<?php

$hex   = $slategray->toHex();
$rgb   = $slategray->toCss('srgb');
$oklch = $slategray->to('oklch')->toCss();
$hex = $slategray->toHex(); $rgb = $slategray->toCss('srgb'); $oklch = $slategray->to('oklch')->toCss();
hex
#708090
rgb
rgb(112 128 144)
oklch
oklch(0.592504 0.0309247 248.348)

Keep exploring

Continue from SlateGray