Seafoam

A pastel green with the freshness of a spring green.

Hex
#93e9be
sRGB
rgb(147 233 190)
OKLCH
oklch(0.8676 0.1035 161.5)

Seafoam is a curated PHPColor catalog color with the canonical value #93e9be.

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

$seafoam = Color::parse('#93E9BE');
use PhpColor\Color\Color; $seafoam = Color::parse('#93E9BE');

ColorInterface

$seafoam

#93e9be · oklch(0.8676 0.1035 161.5)

Build a Seafoam harmony

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

<?php

$harmony = $seafoam->tetradic();

foreach ($harmony as $color) {
    echo $color->toHex().PHP_EOL;
}
$harmony = $seafoam->tetradic(); foreach ($harmony as $color) { echo $color->toHex().PHP_EOL; }
  1. 0#93e9be
  2. 1#a1d8ff
  3. 2#ffb9e7
  4. 3#fec886
Seafoam and its three generated partners

Generate a Seafoam scale

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

<?php

$oklch = $seafoam->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 = $seafoam->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 Seafoam for the web

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

<?php

$hex   = $seafoam->toHex();
$rgb   = $seafoam->toCss('srgb');
$oklch = $seafoam->to('oklch')->toCss();
$hex = $seafoam->toHex(); $rgb = $seafoam->toCss('srgb'); $oklch = $seafoam->to('oklch')->toCss();
hex
#93e9be
rgb
rgb(147 233 190)
oklch
oklch(0.867557 0.103509 161.452)

Keep exploring

Continue from Seafoam