Platinum

A pastel yellow with the freshness of a spring yellow.

Hex
#e5e4e2
sRGB
rgb(229 228 226)
OKLCH
oklch(0.9191 0.0029 84.6)

Platinum is a curated PHPColor catalog color with the canonical value #e5e4e2.

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

$platinum = Color::parse('#E5E4E2');
use PhpColor\Color\Color; $platinum = Color::parse('#E5E4E2');

ColorInterface

$platinum

#e5e4e2 · oklch(0.9191 0.0029 84.6)

Tint Platinum for a system

Platinum is a neutral, so rotating its hue changes nothing. Design systems rarely ship a pure neutral either: give it a trace of chroma and it belongs to the palette around it.

<?php

$neutral = $platinum->to('oklch');

foreach (['warm' => 60, 'fresh' => 150, 'cool' => 250] as $name => $hue) {
    echo $neutral->withChannel('c', 0.02)->withChannel('h', $hue)->toHex().PHP_EOL;
}
$neutral = $platinum->to('oklch'); foreach (['warm' => 60, 'fresh' => 150, 'cool' => 250] as $name => $hue) { echo $neutral->withChannel('c', 0.02)->withChannel('h', $hue)->toHex().PHP_EOL; }
  1. Warm#efe2d7
  2. Fresh#dbe8dd
  3. Cool#dbe6f1
Platinum kept at the same lightness, pulled warm, fresh and cool

Generate a Platinum scale

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

<?php

$oklch = $platinum->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 = $platinum->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 Platinum for the web

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

<?php

$hex   = $platinum->toHex();
$rgb   = $platinum->toCss('srgb');
$oklch = $platinum->to('oklch')->toCss();
$hex = $platinum->toHex(); $rgb = $platinum->toCss('srgb'); $oklch = $platinum->to('oklch')->toCss();
hex
#e5e4e2
rgb
rgb(229 228 226)
oklch
oklch(0.919081 0.00290546 84.5595)

Keep exploring

Continue from Platinum