SkyBlue
A light, cool blue -- the dependable foundation of trustworthy interfaces.
Create SkyBlue 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;
$skyblue = Color::parse('#87CEEB');
use PhpColor\Color\Color;
$skyblue = Color::parse('#87CEEB');
ColorInterface
$skyblue
#87ceeb · oklch(0.8148 0.0819 225.8)
Build a SkyBlue harmony
tetradic() keeps SkyBlue and adds three partners at equal quarter-turns around the OKLCH hue wheel.
<?php
$harmony = $skyblue->tetradic();
foreach ($harmony as $color) {
echo $color->toHex().PHP_EOL;
}
$harmony = $skyblue->tetradic();
foreach ($harmony as $color) {
echo $color->toHex().PHP_EOL;
}
- 0
#87ceeb - 1
#d7b3e7 - 2
#f0b296 - 3
#abcf9a
Generate a SkyBlue scale
Keep the original hue and chroma, then vary OKLCH lightness to produce perceptually ordered steps.
<?php
$oklch = $skyblue->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 = $skyblue->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 SkyBlue for the web
The same object can emit a compact Hex value, an sRGB CSS function, or its perceptual OKLCH coordinates.
<?php
$hex = $skyblue->toHex();
$rgb = $skyblue->toCss('srgb');
$oklch = $skyblue->to('oklch')->toCss();
$hex = $skyblue->toHex();
$rgb = $skyblue->toCss('srgb');
$oklch = $skyblue->to('oklch')->toCss();
- hex
#87ceeb- rgb
rgb(135 206 235)- oklch
oklch(0.814817 0.0819157 225.754)