IndianRed

A mid, warm orange with the energy of a warm sky.

Hex
#cd5c5c
sRGB
rgb(205 92 92)
OKLCH
oklch(0.6154 0.1442 22.2)

IndianRed is a standard CSS named color with the canonical value #cd5c5c.

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

$indianred = Color::parse('#CD5C5C');
use PhpColor\Color\Color; $indianred = Color::parse('#CD5C5C');

ColorInterface

$indianred

#cd5c5c · oklch(0.6154 0.1442 22.2)

Build an IndianRed harmony

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

<?php

$harmony = $indianred->tetradic();

foreach ($harmony as $color) {
    echo $color->toHex().PHP_EOL;
}
$harmony = $indianred->tetradic(); foreach ($harmony as $color) { echo $color->toHex().PHP_EOL; }
  1. 0#cd5c5c
  2. 1#878c00
  3. 2#009caa
  4. 3#8872d3
IndianRed and its three generated partners

Generate an IndianRed scale

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

<?php

$oklch = $indianred->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 = $indianred->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 IndianRed for the web

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

<?php

$hex   = $indianred->toHex();
$rgb   = $indianred->toCss('srgb');
$oklch = $indianred->to('oklch')->toCss();
$hex = $indianred->toHex(); $rgb = $indianred->toCss('srgb'); $oklch = $indianred->to('oklch')->toCss();
hex
#cd5c5c
rgb
rgb(205 92 92)
oklch
oklch(0.615441 0.144152 22.2284)

Keep exploring

Continue from IndianRed