0% · #a226ff
L 0.6 · C 0.3 · H 300
Cyber Wheel
A full hue rotation at constant lightness and chroma, so the wheel reads as pure color with no dead spots. The conic sweep makes it a natural color-picker backdrop or loading spinner.
- Type
- Conic
- Stops
- 4
- Space
- OKLCH
- Direction
- from 0deg
The stops behind Cyber Wheel
Endpoints sit closest to blueviolet and blueviolet.
33% · #00a9c5
L 0.6 · C 0.3 · H 200
67% · #ad7700
L 0.6 · C 0.3 · H 100
100% · #a226ff
L 0.6 · C 0.3 · H 300
Create Cyber Wheel in PHP
Build a conic gradient from the catalog stops, then let PHPColor assign their positions.
<?php
use PhpColor\Color\Gradient\Gradient;
$gradient = Gradient::conic(
0,
)->stops(
'oklch(0.60 0.30 300)',
'oklch(0.60 0.30 200)',
'oklch(0.60 0.30 100)',
'oklch(0.60 0.30 300)',
)->build();
use PhpColor\Color\Gradient\Gradient;
$gradient = Gradient::conic(
0,
)->stops(
'oklch(0.60 0.30 300)',
'oklch(0.60 0.30 200)',
'oklch(0.60 0.30 100)',
'oklch(0.60 0.30 300)',
)->build();
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 Cyber Wheel 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: conic-gradient(from 0deg, oklch(0.60 0.30 300), oklch(0.60 0.30 200), oklch(0.60 0.30 100), oklch(0.60 0.30 300));
background: conic-gradient(from 0deg, oklch(0.60 0.30 300), oklch(0.60 0.30 200), oklch(0.60 0.30 100), oklch(0.60 0.30 300));