PaleGoldenRod

A pastel lime with the freshness of a spring lime.

Hex
#eee8aa
sRGB
rgb(238 232 170)
OKLCH
oklch(0.9210 0.0798 103.2)

PaleGoldenRod is a standard CSS named color with the canonical value #eee8aa.

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

$palegoldenrod = Color::parse('#EEE8AA');
use PhpColor\Color\Color; $palegoldenrod = Color::parse('#EEE8AA');

ColorInterface

$palegoldenrod

#eee8aa · oklch(0.9210 0.0798 103.2)

Build a PaleGoldenRod harmony

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

<?php

$harmony = $palegoldenrod->tetradic();

foreach ($harmony as $color) {
    echo $color->toHex().PHP_EOL;
}
$harmony = $palegoldenrod->tetradic(); foreach ($harmony as $color) { echo $color->toHex().PHP_EOL; }
  1. 0#eee8aa
  2. 1#a4f6f4
  3. 2#dddfff
  4. 3#ffd0d6
PaleGoldenRod and its three generated partners

Generate a PaleGoldenRod scale

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

<?php

$oklch = $palegoldenrod->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 = $palegoldenrod->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 PaleGoldenRod for the web

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

<?php

$hex   = $palegoldenrod->toHex();
$rgb   = $palegoldenrod->toCss('srgb');
$oklch = $palegoldenrod->to('oklch')->toCss();
$hex = $palegoldenrod->toHex(); $rgb = $palegoldenrod->toCss('srgb'); $oklch = $palegoldenrod->to('oklch')->toCss();
hex
#eee8aa
rgb
rgb(238 232 170)
oklch
oklch(0.921048 0.0798064 103.183)

Keep exploring

Continue from PaleGoldenRod