LightYellow

A pastel lime with the freshness of a spring lime.

Hex
#ffffe0
sRGB
rgb(255 255 224)
OKLCH
oklch(0.9920 0.0402 107.1)

LightYellow is a standard CSS named color with the canonical value #ffffe0.

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

$lightyellow = Color::parse('#FFFFE0');
use PhpColor\Color\Color; $lightyellow = Color::parse('#FFFFE0');

ColorInterface

$lightyellow

#ffffe0 · oklch(0.9920 0.0402 107.1)

Build a LightYellow harmony

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

<?php

$harmony = $lightyellow->tetradic();

foreach ($harmony as $color) {
    echo $color->toHex().PHP_EOL;
}
$harmony = $lightyellow->tetradic(); foreach ($harmony as $color) { echo $color->toHex().PHP_EOL; }
  1. 0#ffffe0
  2. 1#deffff
  3. 2#faf9ff
  4. 3#fff2f3
LightYellow and its three generated partners

Generate a LightYellow scale

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

<?php

$oklch = $lightyellow->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 = $lightyellow->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 LightYellow for the web

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

<?php

$hex   = $lightyellow->toHex();
$rgb   = $lightyellow->toCss('srgb');
$oklch = $lightyellow->to('oklch')->toCss();
$hex = $lightyellow->toHex(); $rgb = $lightyellow->toCss('srgb'); $oklch = $lightyellow->to('oklch')->toCss();
hex
#ffffe0
rgb
rgb(255 255 224)
oklch
oklch(0.992007 0.0402443 107.111)

Keep exploring

Continue from LightYellow