LemonChiffon

A pastel lime with the freshness of a spring lime.

Hex
#fffacd
sRGB
rgb(255 250 205)
OKLCH
oklch(0.9778 0.0582 102.2)

LemonChiffon is a standard CSS named color with the canonical value #fffacd.

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

$lemonchiffon = Color::parse('#FFFACD');
use PhpColor\Color\Color; $lemonchiffon = Color::parse('#FFFACD');

ColorInterface

$lemonchiffon

#fffacd · oklch(0.9778 0.0582 102.2)

Build a LemonChiffon harmony

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

<?php

$harmony = $lemonchiffon->tetradic();

foreach ($harmony as $color) {
    echo $color->toHex().PHP_EOL;
}
$harmony = $lemonchiffon->tetradic(); foreach ($harmony as $color) { echo $color->toHex().PHP_EOL; }
  1. 0#fffacd
  2. 1#cbffff
  3. 2#f1f4ff
  4. 3#ffe8ed
LemonChiffon and its three generated partners

Generate a LemonChiffon scale

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

<?php

$oklch = $lemonchiffon->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 = $lemonchiffon->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 LemonChiffon for the web

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

<?php

$hex   = $lemonchiffon->toHex();
$rgb   = $lemonchiffon->toCss('srgb');
$oklch = $lemonchiffon->to('oklch')->toCss();
$hex = $lemonchiffon->toHex(); $rgb = $lemonchiffon->toCss('srgb'); $oklch = $lemonchiffon->to('oklch')->toCss();
hex
#fffacd
rgb
rgb(255 250 205)
oklch
oklch(0.97781 0.0582165 102.156)

Keep exploring

Continue from LemonChiffon