Kelly Green

A mid green with the freshness of a spring green.

Hex
#4cbb17
sRGB
rgb(76 187 23)
OKLCH
oklch(0.6999 0.2119 138.7)

Kelly Green is a curated PHPColor catalog color with the canonical value #4cbb17.

Create Kelly Green 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;

$kellyGreen = Color::parse('#4CBB17');
use PhpColor\Color\Color; $kellyGreen = Color::parse('#4CBB17');

ColorInterface

$kellyGreen

#4cbb17 · oklch(0.6999 0.2119 138.7)

Build a Kelly Green harmony

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

<?php

$harmony = $kellyGreen->tetradic();

foreach ($harmony as $color) {
    echo $color->toHex().PHP_EOL;
}
$harmony = $kellyGreen->tetradic(); foreach ($harmony as $color) { echo $color->toHex().PHP_EOL; }
  1. 0#4cbb17
  2. 1#00b1ff
  3. 2#d46af1
  4. 3#ff6800
Kelly Green and its three generated partners

Generate a Kelly Green scale

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

<?php

$oklch = $kellyGreen->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 = $kellyGreen->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 Kelly Green for the web

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

<?php

$hex   = $kellyGreen->toHex();
$rgb   = $kellyGreen->toCss('srgb');
$oklch = $kellyGreen->to('oklch')->toCss();
$hex = $kellyGreen->toHex(); $rgb = $kellyGreen->toCss('srgb'); $oklch = $kellyGreen->to('oklch')->toCss();
hex
#4cbb17
rgb
rgb(76 187 23)
oklch
oklch(0.699874 0.21187 138.672)

Keep exploring

Continue from Kelly Green