Neon Nights

Electric accents against dark backgrounds.

Mood
Vivid
Colors
5
Space
OKLCH

Neon Nights, color by color

A dark-mode-first set. Each accent is high in chroma against near-black, so it glows without the halo pure RGB neon leaves behind. Use the brights one at a time -- data highlights, focus rings, hover states -- and let the dark do the rest.

#ff80ff L 0.85 · C 0.28 · H 320
#9e98ff L 0.78 · C 0.26 · H 280
#1b96ff L 0.72 · C 0.28 · H 260
#00eae0 L 0.8 · C 0.24 · H 190
#66fc73 L 0.88 · C 0.22 · H 145

Create Neon Nights 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.85 0.28 320)',
    'oklch(0.78 0.26 280)',
    'oklch(0.72 0.28 260)',
    'oklch(0.80 0.24 190)',
    'oklch(0.88 0.22 145)',
]);
use PhpColor\Color\Palette\ColorPalette; $palette = ColorPalette::parse([ 'oklch(0.85 0.28 320)', 'oklch(0.78 0.26 280)', 'oklch(0.72 0.28 260)', 'oklch(0.80 0.24 190)', 'oklch(0.88 0.22 145)', ]);

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 Neon Nights 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 Neon Nights