Glacier

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

Hex
#72a0c1
sRGB
rgb(114 160 193)
OKLCH
oklch(0.6851 0.0696 240.2)

Glacier is a curated PHPColor catalog color with the canonical value #72a0c1.

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

$glacier = Color::parse('#72A0C1');
use PhpColor\Color\Color; $glacier = Color::parse('#72A0C1');

ColorInterface

$glacier

#72a0c1 · oklch(0.6851 0.0696 240.2)

Build a Glacier harmony

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

<?php

$harmony = $glacier->tetradic();

foreach ($harmony as $color) {
    echo $color->toHex().PHP_EOL;
}
$harmony = $glacier->tetradic(); foreach ($harmony as $color) { echo $color->toHex().PHP_EOL; }
  1. 0#72a0c1
  2. 1#b38bae
  3. 2#ba906e
  4. 3#7ba683
Glacier and its three generated partners

Generate a Glacier scale

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

<?php

$oklch = $glacier->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 = $glacier->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 Glacier for the web

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

<?php

$hex   = $glacier->toHex();
$rgb   = $glacier->toCss('srgb');
$oklch = $glacier->to('oklch')->toCss();
$hex = $glacier->toHex(); $rgb = $glacier->toCss('srgb'); $oklch = $glacier->to('oklch')->toCss();
hex
#72a0c1
rgb
rgb(114 160 193)
oklch
oklch(0.68508 0.0696137 240.242)

Keep exploring

Continue from Glacier