Electric Candy

Synthetic brights that push the sRGB gamut limits.

Mood
Vivid
Colors
5
Space
OKLCH

Electric Candy, color by color

Synthetic brights that push the sRGB gamut limits.

#ffbcff L 0.9 · C 0.15 · H 320
#00efca L 0.82 · C 0.22 · H 180
#00d400 L 0.75 · C 0.28 · H 140
#ff5000 L 0.68 · C 0.25 · H 50
#d10054 L 0.55 · C 0.22 · H 10

Create Electric Candy in PHP

Parse the catalog values as one ordered scale. The input remains readable while PHPColor normalizes every color.

<?php

use PhpColor\Color\Palette\ColorPalette;

$palette = ColorPalette::parse([
    'oklch(0.90 0.15 320)',
    'oklch(0.82 0.22 180)',
    'oklch(0.75 0.28 140)',
    'oklch(0.68 0.25 50)',
    'oklch(0.55 0.22 10)',
]);
use PhpColor\Color\Palette\ColorPalette; $palette = ColorPalette::parse([ 'oklch(0.90 0.15 320)', 'oklch(0.82 0.22 180)', 'oklch(0.75 0.28 140)', 'oklch(0.68 0.25 50)', 'oklch(0.55 0.22 10)', ]);

Inspect every palette color

Palette operations preserve order, so iteration and conversion produce values in the same visual sequence.

<?php

foreach ($palette->to('oklch') as $color) {
    echo $color->toCss().PHP_EOL;
}
foreach ($palette->to('oklch') as $color) { echo $color->toCss().PHP_EOL; }

Format Electric Candy for CSS

Export hexadecimal values for compact tokens or convert the full palette to perceptual CSS notation.

<?php

$hex = $palette->toHex();
$css = $palette->to('oklch')->toCss();
$hex = $palette->toHex(); $css = $palette->to('oklch')->toCss();

Keep exploring

Build on Electric Candy