0% · #261a71
L 0.3 · C 0.14 · H 280
Deep Space
A dark radial gradient in indigo tones, interpolated in OKLCH across 3 stops so the ramp stays even from end to end.
- Type
- Radial
- Stops
- 3
- Space
- OKLCH
- Direction
- ellipse at center
The stops behind Deep Space
Endpoints sit closest to midnightblue and black.
50% · #080c42
L 0.2 · C 0.1 · H 270
100% · #000418
L 0.12 · C 0.05 · H 260
Create Deep Space in PHP
Build a radial gradient from the catalog stops, then let PHPColor assign their positions.
<?php
use PhpColor\Color\Gradient\Gradient;
$gradient = Gradient::radial(
'oklch(0.30 0.14 280)',
'oklch(0.20 0.10 270)',
'oklch(0.12 0.05 260)',
);
use PhpColor\Color\Gradient\Gradient;
$gradient = Gradient::radial(
'oklch(0.30 0.14 280)',
'oklch(0.20 0.10 270)',
'oklch(0.12 0.05 260)',
);
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 Deep Space 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: radial-gradient(ellipse at center, oklch(0.30 0.14 280), oklch(0.20 0.10 270), oklch(0.12 0.05 260));
background: radial-gradient(ellipse at center, oklch(0.30 0.14 280), oklch(0.20 0.10 270), oklch(0.12 0.05 260));