Cyber City

Ultra-high chroma yellows and magentas for the future.

Mood
Vivid
Colors
5
Space
OKLCH

Cyber City, color by color

Ultra-high chroma yellows and magentas for the future.

#f6cc00 L 0.85 · C 0.25 · H 100
#fb2af4 L 0.7 · C 0.3 · H 330
#5623fa L 0.5 · C 0.28 · H 280
#79ffa4 L 0.95 · C 0.2 · H 150
#08152c L 0.2 · C 0.05 · H 260

Create Cyber City 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.25 100)',
    'oklch(0.70 0.30 330)',
    'oklch(0.50 0.28 280)',
    'oklch(0.95 0.20 150)',
    'oklch(0.20 0.05 260)',
]);
use PhpColor\Color\Palette\ColorPalette; $palette = ColorPalette::parse([ 'oklch(0.85 0.25 100)', 'oklch(0.70 0.30 330)', 'oklch(0.50 0.28 280)', 'oklch(0.95 0.20 150)', 'oklch(0.20 0.05 260)', ]);

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 Cyber City 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();