Aqua

A pastel, cool teal -- the dependable foundation of trustworthy interfaces.

Hex
#00ffff
sRGB
rgb(0 255 255)
OKLCH
oklch(0.9054 0.1546 194.8)

Aqua is a standard CSS named color with the canonical value #00ffff.

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

$aqua = Color::parse('#00FFFF');
use PhpColor\Color\Color; $aqua = Color::parse('#00FFFF');

ColorInterface

$aqua

#00ffff · oklch(0.9054 0.1546 194.8)

Build an Aqua harmony

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

<?php

$harmony = $aqua->tetradic();

foreach ($harmony as $color) {
    echo $color->toHex().PHP_EOL;
}
$harmony = $aqua->tetradic(); foreach ($harmony as $color) { echo $color->toHex().PHP_EOL; }
  1. 0#00ffff
  2. 1#d5d0ff
  3. 2#ffb3bf
  4. 3#f0e55d
Aqua and its three generated partners

Generate an Aqua scale

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

<?php

$oklch = $aqua->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 = $aqua->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 Aqua for the web

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

<?php

$hex   = $aqua->toHex();
$rgb   = $aqua->toCss('srgb');
$oklch = $aqua->to('oklch')->toCss();
$hex = $aqua->toHex(); $rgb = $aqua->toCss('srgb'); $oklch = $aqua->to('oklch')->toCss();
hex
#00ffff
rgb
rgb(0 255 255)
oklch
oklch(0.905399 0.15455 194.769)

Keep exploring

Continue from Aqua