MistyRose

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

Hex
#ffe4e1
sRGB
rgb(255 228 225)
OKLCH
oklch(0.9400 0.0301 25.3)

MistyRose is a standard CSS named color with the canonical value #ffe4e1.

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

$mistyrose = Color::parse('#FFE4E1');
use PhpColor\Color\Color; $mistyrose = Color::parse('#FFE4E1');

ColorInterface

$mistyrose

#ffe4e1 · oklch(0.9400 0.0301 25.3)

Build a MistyRose harmony

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

<?php

$harmony = $mistyrose->tetradic();

foreach ($harmony as $color) {
    echo $color->toHex().PHP_EOL;
}
$harmony = $mistyrose->tetradic(); foreach ($harmony as $color) { echo $color->toHex().PHP_EOL; }
  1. 0#ffe4e1
  2. 1#eaeed7
  3. 2#d5f1f5
  4. 3#ece8fe
MistyRose and its three generated partners

Generate a MistyRose scale

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

<?php

$oklch = $mistyrose->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 = $mistyrose->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 MistyRose for the web

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

<?php

$hex   = $mistyrose->toHex();
$rgb   = $mistyrose->toCss('srgb');
$oklch = $mistyrose->to('oklch')->toCss();
$hex = $mistyrose->toHex(); $rgb = $mistyrose->toCss('srgb'); $oklch = $mistyrose->to('oklch')->toCss();
hex
#ffe4e1
rgb
rgb(255 228 225)
oklch
oklch(0.940012 0.0300764 25.2812)

Keep exploring

Continue from MistyRose