LightYellow
A pastel lime with the freshness of a spring lime.
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;
}
- 0
#ffffe0 - 1
#deffff - 2
#faf9ff - 3
#fff2f3
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
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)