DarkCyan
A mid, cool teal -- the dependable foundation of trustworthy interfaces.
Create DarkCyan 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;
$darkcyan = Color::parse('#008B8B');
use PhpColor\Color\Color;
$darkcyan = Color::parse('#008B8B');
ColorInterface
$darkcyan
#008b8b · oklch(0.5765 0.0984 194.8)
Build a DarkCyan harmony
tetradic() keeps DarkCyan and adds three partners at equal quarter-turns around the OKLCH hue wheel.
<?php
$harmony = $darkcyan->tetradic();
foreach ($harmony as $color) {
echo $color->toHex().PHP_EOL;
}
$harmony = $darkcyan->tetradic();
foreach ($harmony as $color) {
echo $color->toHex().PHP_EOL;
}
- 0
#008b8b - 1
#7370b1 - 2
#ab6067 - 3
#827c2f
Generate a DarkCyan scale
Keep the original hue and chroma, then vary OKLCH lightness to produce perceptually ordered steps.
<?php
$oklch = $darkcyan->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 = $darkcyan->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 DarkCyan for the web
The same object can emit a compact Hex value, an sRGB CSS function, or its perceptual OKLCH coordinates.
<?php
$hex = $darkcyan->toHex();
$rgb = $darkcyan->toCss('srgb');
$oklch = $darkcyan->to('oklch')->toCss();
$hex = $darkcyan->toHex();
$rgb = $darkcyan->toCss('srgb');
$oklch = $darkcyan->to('oklch')->toCss();
- hex
#008b8b- rgb
rgb(0 139 139)- oklch
oklch(0.576522 0.0984113 194.769)