NavajoWhite

A pastel yellow with the freshness of a spring yellow.

Hex
#ffdead
sRGB
rgb(255 222 173)
OKLCH
oklch(0.9164 0.0730 77.4)

NavajoWhite is a standard CSS named color with the canonical value #ffdead.

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

$navajowhite = Color::parse('#FFDEAD');
use PhpColor\Color\Color; $navajowhite = Color::parse('#FFDEAD');

ColorInterface

$navajowhite

#ffdead · oklch(0.9164 0.0730 77.4)

Build a NavajoWhite harmony

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

<?php

$harmony = $navajowhite->tetradic();

foreach ($harmony as $color) {
    echo $color->toHex().PHP_EOL;
}
$harmony = $navajowhite->tetradic(); foreach ($harmony as $color) { echo $color->toHex().PHP_EOL; }
  1. 0#ffdead
  2. 1#b4f4da
  3. 2#c5e6ff
  4. 3#ffd0ec
NavajoWhite and its three generated partners

Generate a NavajoWhite scale

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

<?php

$oklch = $navajowhite->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 = $navajowhite->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 NavajoWhite for the web

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

<?php

$hex   = $navajowhite->toHex();
$rgb   = $navajowhite->toCss('srgb');
$oklch = $navajowhite->to('oklch')->toCss();
$hex = $navajowhite->toHex(); $rgb = $navajowhite->toCss('srgb'); $oklch = $navajowhite->to('oklch')->toCss();
hex
#ffdead
rgb
rgb(255 222 173)
oklch
oklch(0.916402 0.0730061 77.4356)

Keep exploring

Continue from NavajoWhite