0% · #fa87ff
L 0.8 · C 0.22 · H 320
Vaporwave
A linear gradient sweeping from light magenta to light cyan, interpolated in OKLCH across 3 stops so the midpoint stays vivid instead of greying out.
- Type
- Linear
- Stops
- 3
- Space
- OKLCH
- Direction
- 135deg
The stops behind Vaporwave
Endpoints sit closest to violet and darkturquoise.
50% · #66b4ff
L 0.78 · C 0.2 · H 260
100% · #00e5f2
L 0.82 · C 0.18 · H 200
Create Vaporwave in PHP
Build a linear gradient from the catalog stops, then let PHPColor assign their positions.
<?php
use PhpColor\Color\Gradient\Gradient;
$gradient = Gradient::linear(
135,
'oklch(0.80 0.22 320)',
'oklch(0.78 0.20 260)',
'oklch(0.82 0.18 200)',
);
use PhpColor\Color\Gradient\Gradient;
$gradient = Gradient::linear(
135,
'oklch(0.80 0.22 320)',
'oklch(0.78 0.20 260)',
'oklch(0.82 0.18 200)',
);
Inspect and convert its stops
Each stop remains a color object, ready for conversion, contrast checks, or further manipulation.
<?php
foreach ($gradient->getStops() as $stop) {
echo $stop->color->to('oklch')->toCss();
}
foreach ($gradient->getStops() as $stop) {
echo $stop->color->to('oklch')->toCss();
}
Format Vaporwave for CSS
Serialize the gradient directly, or choose a wide-gamut notation for every stop.
<?php
$css = $gradient->toCss();
$p3 = $gradient->toCss('display-p3');
$css = $gradient->toCss();
$p3 = $gradient->toCss('display-p3');
background: linear-gradient(135deg, oklch(0.80 0.22 320), oklch(0.78 0.20 260), oklch(0.82 0.18 200));
background: linear-gradient(135deg, oklch(0.80 0.22 320), oklch(0.78 0.20 260), oklch(0.82 0.18 200));