DarkOrange
A light, warm amber with the energy of a warm sky.
Create DarkOrange 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;
$darkorange = Color::parse('#FF8C00');
use PhpColor\Color\Color;
$darkorange = Color::parse('#FF8C00');
ColorInterface
$darkorange
#ff8c00 · oklch(0.7505 0.1791 58.3)
Build a DarkOrange harmony
tetradic() keeps DarkOrange and adds three partners at equal quarter-turns around the OKLCH hue wheel.
<?php
$harmony = $darkorange->tetradic();
foreach ($harmony as $color) {
echo $color->toHex().PHP_EOL;
}
$harmony = $darkorange->tetradic();
foreach ($harmony as $color) {
echo $color->toHex().PHP_EOL;
}
- 0
#ff8c00 - 1
#4acc69 - 2
#00bbff - 3
#e980e6
Generate a DarkOrange scale
Keep the original hue and chroma, then vary OKLCH lightness to produce perceptually ordered steps.
<?php
$oklch = $darkorange->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 = $darkorange->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 DarkOrange for the web
The same object can emit a compact Hex value, an sRGB CSS function, or its perceptual OKLCH coordinates.
<?php
$hex = $darkorange->toHex();
$rgb = $darkorange->toCss('srgb');
$oklch = $darkorange->to('oklch')->toCss();
$hex = $darkorange->toHex();
$rgb = $darkorange->toCss('srgb');
$oklch = $darkorange->to('oklch')->toCss();
- hex
#ff8c00- rgb
rgb(255 140 0)- oklch
oklch(0.750544 0.179115 58.2827)