Cyan

A light, cool cyan -- the dependable foundation of trustworthy interfaces.

Hex
#06b6d4
sRGB
rgb(6 182 212)
OKLCH
oklch(0.7148 0.1257 215.2)

This curated Cyan is #06b6d4. The CSS named color cyan is the distinct color #00ffff.

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

$cyan = Color::parse('#06B6D4');
use PhpColor\Color\Color; $cyan = Color::parse('#06B6D4');

ColorInterface

$cyan

#06b6d4 · oklch(0.7148 0.1257 215.2)

Build a Cyan harmony

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

<?php

$harmony = $cyan->tetradic();

foreach ($harmony as $color) {
    echo $color->toHex().PHP_EOL;
}
$harmony = $cyan->tetradic(); foreach ($harmony as $color) { echo $color->toHex().PHP_EOL; }
  1. 0#06b6d4
  2. 1#b68ee2
  3. 2#e6856c
  4. 3#91b154
Cyan and its three generated partners

Generate a Cyan scale

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

<?php

$oklch = $cyan->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 = $cyan->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 the complete Cyan scale →

Format Cyan for the web

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

<?php

$hex   = $cyan->toHex();
$rgb   = $cyan->toCss('srgb');
$oklch = $cyan->to('oklch')->toCss();
$hex = $cyan->toHex(); $rgb = $cyan->toCss('srgb'); $oklch = $cyan->to('oklch')->toCss();
hex
#06b6d4
rgb
rgb(6 182 212)
oklch
oklch(0.714837 0.125737 215.221)

Keep exploring

Continue from Cyan