Vermilion

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

Hex
#e34234
sRGB
rgb(227 66 52)
OKLCH
oklch(0.6129 0.2000 29.1)

Vermilion is a curated PHPColor catalog color with the canonical value #e34234.

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

$vermilion = Color::parse('#E34234');
use PhpColor\Color\Color; $vermilion = Color::parse('#E34234');

ColorInterface

$vermilion

#e34234 · oklch(0.6129 0.2000 29.1)

Build a Vermilion harmony

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

<?php

$harmony = $vermilion->tetradic();

foreach ($harmony as $color) {
    echo $color->toHex().PHP_EOL;
}
$harmony = $vermilion->tetradic(); foreach ($harmony as $color) { echo $color->toHex().PHP_EOL; }
  1. 0#e34234
  2. 1#799200
  3. 2#009fc4
  4. 3#975fe9
Vermilion and its three generated partners

Generate a Vermilion scale

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

<?php

$oklch = $vermilion->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 = $vermilion->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 Vermilion for the web

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

<?php

$hex   = $vermilion->toHex();
$rgb   = $vermilion->toCss('srgb');
$oklch = $vermilion->to('oklch')->toCss();
$hex = $vermilion->toHex(); $rgb = $vermilion->toCss('srgb'); $oklch = $vermilion->to('oklch')->toCss();
hex
#e34234
rgb
rgb(227 66 52)
oklch
oklch(0.612896 0.199979 29.1444)

Keep exploring

Continue from Vermilion