Sienna
A deep, warm orange with the energy of a warm sky.
Create Sienna 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;
$sienna = Color::parse('#A0522D');
use PhpColor\Color\Color;
$sienna = Color::parse('#A0522D');
ColorInterface
$sienna
#a0522d · oklch(0.5265 0.1151 44.6)
Build a Sienna harmony
tetradic() keeps Sienna and adds three partners at equal quarter-turns around the OKLCH hue wheel.
<?php
$harmony = $sienna->tetradic();
foreach ($harmony as $color) {
echo $color->toHex().PHP_EOL;
}
$harmony = $sienna->tetradic();
foreach ($harmony as $color) {
echo $color->toHex().PHP_EOL;
}
- 0
#a0522d - 1
#4d792f - 2
#00779c - 3
#835498
Generate a Sienna scale
Keep the original hue and chroma, then vary OKLCH lightness to produce perceptually ordered steps.
<?php
$oklch = $sienna->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 = $sienna->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
Format Sienna for the web
The same object can emit a compact Hex value, an sRGB CSS function, or its perceptual OKLCH coordinates.
<?php
$hex = $sienna->toHex();
$rgb = $sienna->toCss('srgb');
$oklch = $sienna->to('oklch')->toCss();
$hex = $sienna->toHex();
$rgb = $sienna->toCss('srgb');
$oklch = $sienna->to('oklch')->toCss();
- hex
#a0522d- rgb
rgb(160 82 45)- oklch
oklch(0.526482 0.115119 44.6044)