LightGrey

A pastel yellow with the freshness of a spring yellow.

Hex
#d3d3d3
sRGB
rgb(211 211 211)
OKLCH
oklch(0.8669 0.0000 89.9)

LightGrey is a standard CSS named color with the canonical value #d3d3d3.

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

$lightgrey = Color::parse('#D3D3D3');
use PhpColor\Color\Color; $lightgrey = Color::parse('#D3D3D3');

ColorInterface

$lightgrey

#d3d3d3 · oklch(0.8669 0.0000 89.9)

Tint LightGrey for a system

LightGrey 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 = $lightgrey->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 = $lightgrey->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#ded0c6
  2. Fresh#cad7cc
  3. Cool#cad5e0
LightGrey kept at the same lightness, pulled warm, fresh and cool

Generate a LightGrey scale

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

<?php

$oklch = $lightgrey->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 = $lightgrey->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 LightGrey for the web

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

<?php

$hex   = $lightgrey->toHex();
$rgb   = $lightgrey->toCss('srgb');
$oklch = $lightgrey->to('oklch')->toCss();
$hex = $lightgrey->toHex(); $rgb = $lightgrey->toCss('srgb'); $oklch = $lightgrey->to('oklch')->toCss();
hex
#d3d3d3
rgb
rgb(211 211 211)
oklch
oklch(0.866863 0 89.8756)

Keep exploring

Continue from LightGrey