LightSkyBlue

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

Hex
#87cefa
sRGB
rgb(135 206 250)
OKLCH
oklch(0.8206 0.0945 236.8)

LightSkyBlue is a standard CSS named color with the canonical value #87cefa.

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

$lightskyblue = Color::parse('#87CEFA');
use PhpColor\Color\Color; $lightskyblue = Color::parse('#87CEFA');

ColorInterface

$lightskyblue

#87cefa · oklch(0.8206 0.0945 236.8)

Build a LightSkyBlue harmony

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

<?php

$harmony = $lightskyblue->tetradic();

foreach ($harmony as $color) {
    echo $color->toHex().PHP_EOL;
}
$harmony = $lightskyblue->tetradic(); foreach ($harmony as $color) { echo $color->toHex().PHP_EOL; }
  1. 0#87cefa
  2. 1#e5afe5
  3. 2#f4b588
  4. 3#9cd5a0
LightSkyBlue and its three generated partners

Generate a LightSkyBlue scale

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

<?php

$oklch = $lightskyblue->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 = $lightskyblue->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 LightSkyBlue for the web

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

<?php

$hex   = $lightskyblue->toHex();
$rgb   = $lightskyblue->toCss('srgb');
$oklch = $lightskyblue->to('oklch')->toCss();
$hex = $lightskyblue->toHex(); $rgb = $lightskyblue->toCss('srgb'); $oklch = $lightskyblue->to('oklch')->toCss();
hex
#87cefa
rgb
rgb(135 206 250)
oklch
oklch(0.820619 0.0945282 236.754)

Keep exploring

Continue from LightSkyBlue