Coral Reef

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

Hex
#fd7c6e
sRGB
rgb(253 124 110)
OKLCH
oklch(0.7325 0.1600 27.9)

Coral Reef is a curated PHPColor catalog color with the canonical value #fd7c6e.

Create Coral Reef 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;

$coralReef = Color::parse('#FD7C6E');
use PhpColor\Color\Color; $coralReef = Color::parse('#FD7C6E');

ColorInterface

$coralReef

#fd7c6e · oklch(0.7325 0.1600 27.9)

Build a Coral Reef harmony

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

<?php

$harmony = $coralReef->tetradic();

foreach ($harmony as $color) {
    echo $color->toHex().PHP_EOL;
}
$harmony = $coralReef->tetradic(); foreach ($harmony as $color) { echo $color->toHex().PHP_EOL; }
  1. 0#fd7c6e
  2. 1#a0b524
  3. 2#00c2dc
  4. 3#b590ff
Coral Reef and its three generated partners

Generate a Coral Reef scale

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

<?php

$oklch = $coralReef->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 = $coralReef->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 Coral Reef for the web

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

<?php

$hex   = $coralReef->toHex();
$rgb   = $coralReef->toCss('srgb');
$oklch = $coralReef->to('oklch')->toCss();
$hex = $coralReef->toHex(); $rgb = $coralReef->toCss('srgb'); $oklch = $coralReef->to('oklch')->toCss();
hex
#fd7c6e
rgb
rgb(253 124 110)
oklch
oklch(0.732462 0.160025 27.9485)

Keep exploring

Continue from Coral Reef