HoneyDew

A pastel green with the freshness of a spring green.

Hex
#f0fff0
sRGB
rgb(240 255 240)
OKLCH
oklch(0.9848 0.0252 145.4)

HoneyDew is a standard CSS named color with the canonical value #f0fff0.

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

$honeydew = Color::parse('#F0FFF0');
use PhpColor\Color\Color; $honeydew = Color::parse('#F0FFF0');

ColorInterface

$honeydew

#f0fff0 · oklch(0.9848 0.0252 145.4)

Tint HoneyDew for a system

HoneyDew is a neutral, so rotating its hue changes nothing. Design systems rarely ship a pure neutral either: give it a trace of chroma and it belongs to the palette around it.

<?php

$neutral = $honeydew->to('oklch');

foreach (['warm' => 60, 'fresh' => 150, 'cool' => 250] as $name => $hue) {
    echo $neutral->withChannel('c', 0.02)->withChannel('h', $hue)->toHex().PHP_EOL;
}
$neutral = $honeydew->to('oklch'); foreach (['warm' => 60, 'fresh' => 150, 'cool' => 250] as $name => $hue) { echo $neutral->withChannel('c', 0.02)->withChannel('h', $hue)->toHex().PHP_EOL; }
  1. Warm#fff7ed
  2. Fresh#f1fef3
  3. Cool#f0fcff
HoneyDew kept at the same lightness, pulled warm, fresh and cool

Generate a HoneyDew scale

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

<?php

$oklch = $honeydew->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 = $honeydew->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 HoneyDew for the web

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

<?php

$hex   = $honeydew->toHex();
$rgb   = $honeydew->toCss('srgb');
$oklch = $honeydew->to('oklch')->toCss();
$hex = $honeydew->toHex(); $rgb = $honeydew->toCss('srgb'); $oklch = $honeydew->to('oklch')->toCss();
hex
#f0fff0
rgb
rgb(240 255 240)
oklch
oklch(0.984842 0.0252097 145.381)

Keep exploring

Continue from HoneyDew