Stormy Sea

A linear gradient sweeping from mid cyan to deep blue, interpolated in OKLCH across 2 stops so the midpoint stays vivid instead of greying out.

Type
Linear
Stops
2
Space
OKLCH
Direction
180deg

The stops behind Stormy Sea

Endpoints sit closest to cadetblue and darkslateblue.

0% · #4d9daa L 0.65 · C 0.08 · H 210
100% · #00426c L 0.35 · C 0.12 · H 230

Create Stormy Sea 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.65 0.08 210)',
    'oklch(0.35 0.12 230)',
);
use PhpColor\Color\Gradient\Gradient; $gradient = Gradient::linear( 180, 'oklch(0.65 0.08 210)', 'oklch(0.35 0.12 230)', );

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 Stormy Sea 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.65 0.08 210), oklch(0.35 0.12 230));
background: linear-gradient(180deg, oklch(0.65 0.08 210), oklch(0.35 0.12 230));