Ice Blue
A pastel, cool cyan -- the dependable foundation of trustworthy interfaces.
Create Ice Blue 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;
$iceBlue = Color::parse('#99FFFF');
use PhpColor\Color\Color;
$iceBlue = Color::parse('#99FFFF');
ColorInterface
$iceBlue
#99ffff · oklch(0.9380 0.0956 195.6)
Build an Ice Blue harmony
tetradic() keeps Ice Blue and adds three partners at equal quarter-turns around the OKLCH hue wheel.
<?php
$harmony = $iceBlue->tetradic();
foreach ($harmony as $color) {
echo $color->toHex().PHP_EOL;
}
$harmony = $iceBlue->tetradic();
foreach ($harmony as $color) {
echo $color->toHex().PHP_EOL;
}
- 0
#99ffff - 1
#e4e2ff - 2
#ffd1d5 - 3
#f3efa3
Generate an Ice Blue scale
Keep the original hue and chroma, then vary OKLCH lightness to produce perceptually ordered steps.
<?php
$oklch = $iceBlue->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 = $iceBlue->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 Ice Blue for the web
The same object can emit a compact Hex value, an sRGB CSS function, or its perceptual OKLCH coordinates.
<?php
$hex = $iceBlue->toHex();
$rgb = $iceBlue->toCss('srgb');
$oklch = $iceBlue->to('oklch')->toCss();
$hex = $iceBlue->toHex();
$rgb = $iceBlue->toCss('srgb');
$oklch = $iceBlue->to('oklch')->toCss();
- hex
#99ffff- rgb
rgb(153 255 255)- oklch
oklch(0.937974 0.0956469 195.644)