PeachPuff

A pastel, warm amber with the energy of a warm sky.

Hex
#ffdab9
sRGB
rgb(255 218 185)
OKLCH
oklch(0.9113 0.0600 63.7)

PeachPuff is a standard CSS named color with the canonical value #ffdab9.

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

$peachpuff = Color::parse('#FFDAB9');
use PhpColor\Color\Color; $peachpuff = Color::parse('#FFDAB9');

ColorInterface

$peachpuff

#ffdab9 · oklch(0.9113 0.0600 63.7)

Build a PeachPuff harmony

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

<?php

$harmony = $peachpuff->tetradic();

foreach ($harmony as $color) {
    echo $color->toHex().PHP_EOL;
}
$harmony = $peachpuff->tetradic(); foreach ($harmony as $color) { echo $color->toHex().PHP_EOL; }
  1. 0#ffdab9
  2. 1#c4eed0
  3. 2#c0e7ff
  4. 3#fbd4f3
PeachPuff and its three generated partners

Generate a PeachPuff scale

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

<?php

$oklch = $peachpuff->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 = $peachpuff->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 PeachPuff for the web

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

<?php

$hex   = $peachpuff->toHex();
$rgb   = $peachpuff->toCss('srgb');
$oklch = $peachpuff->to('oklch')->toCss();
$hex = $peachpuff->toHex(); $rgb = $peachpuff->toCss('srgb'); $oklch = $peachpuff->to('oklch')->toCss();
hex
#ffdab9
rgb
rgb(255 218 185)
oklch
oklch(0.911253 0.0599996 63.6987)

Keep exploring

Continue from PeachPuff