MediumSpringGreen

A pastel green with the freshness of a spring green.

Hex
#00fa9a
sRGB
rgb(0 250 154)
OKLCH
oklch(0.8668 0.2067 156.9)

MediumSpringGreen is a standard CSS named color with the canonical value #00fa9a.

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

$mediumspringgreen = Color::parse('#00FA9A');
use PhpColor\Color\Color; $mediumspringgreen = Color::parse('#00FA9A');

ColorInterface

$mediumspringgreen

#00fa9a · oklch(0.8668 0.2067 156.9)

Build a MediumSpringGreen harmony

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

<?php

$harmony = $mediumspringgreen->tetradic();

foreach ($harmony as $color) {
    echo $color->toHex().PHP_EOL;
}
$harmony = $mediumspringgreen->tetradic(); foreach ($harmony as $color) { echo $color->toHex().PHP_EOL; }
  1. 0#00fa9a
  2. 1#3fdbff
  3. 2#ff98ff
  4. 3#ffb300
MediumSpringGreen and its three generated partners

Generate a MediumSpringGreen scale

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

<?php

$oklch = $mediumspringgreen->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 = $mediumspringgreen->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 MediumSpringGreen for the web

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

<?php

$hex   = $mediumspringgreen->toHex();
$rgb   = $mediumspringgreen->toCss('srgb');
$oklch = $mediumspringgreen->to('oklch')->toCss();
$hex = $mediumspringgreen->toHex(); $rgb = $mediumspringgreen->toCss('srgb'); $oklch = $mediumspringgreen->to('oklch')->toCss();
hex
#00fa9a
rgb
rgb(0 250 154)
oklch
oklch(0.866806 0.206745 156.905)

Keep exploring

Continue from MediumSpringGreen