LightSkyBlue
A light, cool blue -- the dependable foundation of trustworthy interfaces.
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;
}
- 0
#87cefa - 1
#e5afe5 - 2
#f4b588 - 3
#9cd5a0
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
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)