Electric Blue

A pastel, cool cyan -- the dependable foundation of trustworthy interfaces.

Hex
#7df9ff
sRGB
rgb(125 249 255)
OKLCH
oklch(0.9132 0.1113 199.6)

Electric Blue is a curated PHPColor catalog color with the canonical value #7df9ff.

Create Electric Blue 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;

$electricBlue = Color::parse('#7DF9FF');
use PhpColor\Color\Color; $electricBlue = Color::parse('#7DF9FF');

ColorInterface

$electricBlue

#7df9ff · oklch(0.9132 0.1113 199.6)

Build an Electric Blue harmony

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

<?php

$harmony = $electricBlue->tetradic();

foreach ($harmony as $color) {
    echo $color->toHex().PHP_EOL;
}
$harmony = $electricBlue->tetradic(); foreach ($harmony as $color) { echo $color->toHex().PHP_EOL; }
  1. 0#7df9ff
  2. 1#e0d6ff
  3. 2#ffc4c4
  4. 3#e7e990
Electric Blue and its three generated partners

Generate an Electric Blue scale

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

<?php

$oklch = $electricBlue->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 = $electricBlue->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 Electric Blue for the web

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

<?php

$hex   = $electricBlue->toHex();
$rgb   = $electricBlue->toCss('srgb');
$oklch = $electricBlue->to('oklch')->toCss();
$hex = $electricBlue->toHex(); $rgb = $electricBlue->toCss('srgb'); $oklch = $electricBlue->to('oklch')->toCss();
hex
#7df9ff
rgb
rgb(125 249 255)
oklch
oklch(0.913196 0.111278 199.611)

Keep exploring

Continue from Electric Blue