LightGoldenRodYellow

A pastel lime with the freshness of a spring lime.

Hex
#fafad2
sRGB
rgb(250 250 210)
OKLCH
oklch(0.9750 0.0518 107.3)

LightGoldenRodYellow is a standard CSS named color with the canonical value #fafad2.

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

$lightgoldenrodyellow = Color::parse('#FAFAD2');
use PhpColor\Color\Color; $lightgoldenrodyellow = Color::parse('#FAFAD2');

ColorInterface

$lightgoldenrodyellow

#fafad2 · oklch(0.9750 0.0518 107.3)

Build a LightGoldenRodYellow harmony

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

<?php

$harmony = $lightgoldenrodyellow->tetradic();

foreach ($harmony as $color) {
    echo $color->toHex().PHP_EOL;
}
$harmony = $lightgoldenrodyellow->tetradic(); foreach ($harmony as $color) { echo $color->toHex().PHP_EOL; }
  1. 0#fafad2
  2. 1#cfffff
  3. 2#f4f2ff
  4. 3#ffeaea
LightGoldenRodYellow and its three generated partners

Generate a LightGoldenRodYellow scale

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

<?php

$oklch = $lightgoldenrodyellow->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 = $lightgoldenrodyellow->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 LightGoldenRodYellow for the web

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

<?php

$hex   = $lightgoldenrodyellow->toHex();
$rgb   = $lightgoldenrodyellow->toCss('srgb');
$oklch = $lightgoldenrodyellow->to('oklch')->toCss();
$hex = $lightgoldenrodyellow->toHex(); $rgb = $lightgoldenrodyellow->toCss('srgb'); $oklch = $lightgoldenrodyellow->to('oklch')->toCss();
hex
#fafad2
rgb
rgb(250 250 210)
oklch
oklch(0.975006 0.0518385 107.324)

Keep exploring

Continue from LightGoldenRodYellow