0% · #c6cedb
L 0.85 · C 0.02 · H 260
Slate Storm
A light linear gradient in indigo tones, interpolated in OKLCH across 3 stops so the ramp stays even from end to end.
- Type
- Linear
- Stops
- 3
- Space
- OKLCH
- Direction
- 180deg
The stops behind Slate Storm
Endpoints sit closest to lightsteelblue and black.
50% · #455671
L 0.45 · C 0.05 · H 260
100% · #070b14
L 0.15 · C 0.02 · H 260
Create Slate Storm 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(
180,
'oklch(0.85 0.02 260)',
'oklch(0.45 0.05 260)',
'oklch(0.15 0.02 260)',
);
use PhpColor\Color\Gradient\Gradient;
$gradient = Gradient::linear(
180,
'oklch(0.85 0.02 260)',
'oklch(0.45 0.05 260)',
'oklch(0.15 0.02 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 Slate Storm 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(180deg, oklch(0.85 0.02 260), oklch(0.45 0.05 260), oklch(0.15 0.02 260));
background: linear-gradient(180deg, oklch(0.85 0.02 260), oklch(0.45 0.05 260), oklch(0.15 0.02 260));