LightBlue

A pastel, cool cyan -- the dependable foundation of trustworthy interfaces.

Hex
#add8e6
sRGB
rgb(173 216 230)
OKLCH
oklch(0.8562 0.0489 219.7)

LightBlue is a standard CSS named color with the canonical value #add8e6.

Create LightBlue 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;

$lightblue = Color::parse('#ADD8E6');
use PhpColor\Color\Color; $lightblue = Color::parse('#ADD8E6');

ColorInterface

$lightblue

#add8e6 · oklch(0.8562 0.0489 219.7)

Build a LightBlue harmony

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

<?php

$harmony = $lightblue->tetradic();

foreach ($harmony as $color) {
    echo $color->toHex().PHP_EOL;
}
$harmony = $lightblue->tetradic(); foreach ($harmony as $color) { echo $color->toHex().PHP_EOL; }
  1. 0#add8e6
  2. 1#d9c8e8
  3. 2#edc6b8
  4. 3#c5d7b5
LightBlue and its three generated partners

Generate a LightBlue scale

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

<?php

$oklch = $lightblue->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 = $lightblue->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 LightBlue for the web

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

<?php

$hex   = $lightblue->toHex();
$rgb   = $lightblue->toCss('srgb');
$oklch = $lightblue->to('oklch')->toCss();
$hex = $lightblue->toHex(); $rgb = $lightblue->toCss('srgb'); $oklch = $lightblue->to('oklch')->toCss();
hex
#add8e6
rgb
rgb(173 216 230)
oklch
oklch(0.856233 0.0489401 219.654)

Keep exploring

Continue from LightBlue