MediumSeaGreen

A mid green with the freshness of a spring green.

Hex
#3cb371
sRGB
rgb(60 179 113)
OKLCH
oklch(0.6840 0.1440 155.0)

MediumSeaGreen is a standard CSS named color with the canonical value #3cb371.

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

$mediumseagreen = Color::parse('#3CB371');
use PhpColor\Color\Color; $mediumseagreen = Color::parse('#3CB371');

ColorInterface

$mediumseagreen

#3cb371 · oklch(0.6840 0.1440 155.0)

Build a MediumSeaGreen harmony

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

<?php

$harmony = $mediumseagreen->tetradic();

foreach ($harmony as $color) {
    echo $color->toHex().PHP_EOL;
}
$harmony = $mediumseagreen->tetradic(); foreach ($harmony as $color) { echo $color->toHex().PHP_EOL; }
  1. 0#3cb371
  2. 1#3ca1ec
  3. 2#cf75bd
  4. 3#d5841f
MediumSeaGreen and its three generated partners

Generate a MediumSeaGreen scale

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

<?php

$oklch = $mediumseagreen->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 = $mediumseagreen->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 MediumSeaGreen for the web

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

<?php

$hex   = $mediumseagreen->toHex();
$rgb   = $mediumseagreen->toCss('srgb');
$oklch = $mediumseagreen->to('oklch')->toCss();
$hex = $mediumseagreen->toHex(); $rgb = $mediumseagreen->toCss('srgb'); $oklch = $mediumseagreen->to('oklch')->toCss();
hex
#3cb371
rgb
rgb(60 179 113)
oklch
oklch(0.684042 0.144017 154.999)

Keep exploring

Continue from MediumSeaGreen