0% · #5e7eff
L 0.65 · C 0.22 · H 270
Indigo Vibe
A mid linear gradient in indigo tones, interpolated in OKLCH across 2 stops so the ramp stays even from end to end.
- Type
- Linear
- Stops
- 2
- Space
- OKLCH
- Direction
- 90deg
The stops behind Indigo Vibe
Endpoints sit closest to cornflowerblue and darkslateblue.
100% · #4134ab
L 0.42 · C 0.18 · H 280
Create Indigo Vibe 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(
90,
'oklch(0.65 0.22 270)',
'oklch(0.42 0.18 280)',
);
use PhpColor\Color\Gradient\Gradient;
$gradient = Gradient::linear(
90,
'oklch(0.65 0.22 270)',
'oklch(0.42 0.18 280)',
);
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 Indigo Vibe 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(90deg, oklch(0.65 0.22 270), oklch(0.42 0.18 280));
background: linear-gradient(90deg, oklch(0.65 0.22 270), oklch(0.42 0.18 280));