DarkKhaki

A light lime with the freshness of a spring lime.

Hex
#bdb76b
sRGB
rgb(189 183 107)
OKLCH
oklch(0.7675 0.0980 104.5)

DarkKhaki is a standard CSS named color with the canonical value #bdb76b.

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

$darkkhaki = Color::parse('#BDB76B');
use PhpColor\Color\Color; $darkkhaki = Color::parse('#BDB76B');

ColorInterface

$darkkhaki

#bdb76b · oklch(0.7675 0.0980 104.5)

Build a DarkKhaki harmony

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

<?php

$harmony = $darkkhaki->tetradic();

foreach ($harmony as $color) {
    echo $color->toHex().PHP_EOL;
}
$harmony = $darkkhaki->tetradic(); foreach ($harmony as $color) { echo $color->toHex().PHP_EOL; }
  1. 0#bdb76b
  2. 1#5dc7c6
  3. 2#acabf0
  4. 3#eb99a0
DarkKhaki and its three generated partners

Generate a DarkKhaki scale

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

<?php

$oklch = $darkkhaki->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 = $darkkhaki->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 DarkKhaki for the web

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

<?php

$hex   = $darkkhaki->toHex();
$rgb   = $darkkhaki->toCss('srgb');
$oklch = $darkkhaki->to('oklch')->toCss();
$hex = $darkkhaki->toHex(); $rgb = $darkkhaki->toCss('srgb'); $oklch = $darkkhaki->to('oklch')->toCss();
hex
#bdb76b
rgb
rgb(189 183 107)
oklch
oklch(0.767474 0.0980395 104.515)

Keep exploring

Continue from DarkKhaki