Sand

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

Hex
#d6d3d1
sRGB
rgb(214 211 209)
OKLCH
oklch(0.8687 0.0043 56.4)

Sand is a curated PHPColor catalog color with the canonical value #d6d3d1.

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

$sand = Color::parse('#D6D3D1');
use PhpColor\Color\Color; $sand = Color::parse('#D6D3D1');

ColorInterface

$sand

#d6d3d1 · oklch(0.8687 0.0043 56.4)

Tint Sand for a system

Sand 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 = $sand->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 = $sand->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#ded1c7
  2. Fresh#cbd8cd
  3. Cool#cad5e1
Sand kept at the same lightness, pulled warm, fresh and cool

Generate a Sand scale

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

<?php

$oklch = $sand->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 = $sand->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 Sand for the web

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

<?php

$hex   = $sand->toHex();
$rgb   = $sand->toCss('srgb');
$oklch = $sand->to('oklch')->toCss();
$hex = $sand->toHex(); $rgb = $sand->toCss('srgb'); $oklch = $sand->to('oklch')->toCss();
hex
#d6d3d1
rgb
rgb(214 211 209)
oklch
oklch(0.868661 0.00430627 56.366)