Lemon Lime

A pastel linear gradient in lime tones, interpolated in OKLCH across 2 stops so the ramp stays even from end to end.

Type
Linear
Stops
2
Space
OKLCH
Direction
135deg

The stops behind Lemon Lime

Endpoints sit closest to yellow and greenyellow.

0% · #fff448 L 0.96 · C 0.18 · H 100
100% · #d3f800 L 0.92 · C 0.22 · H 120

Create Lemon Lime 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(
    135,
    'oklch(0.96 0.18 100)',
    'oklch(0.92 0.22 120)',
);
use PhpColor\Color\Gradient\Gradient; $gradient = Gradient::linear( 135, 'oklch(0.96 0.18 100)', 'oklch(0.92 0.22 120)', );

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 Lemon Lime 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(135deg, oklch(0.96 0.18 100), oklch(0.92 0.22 120));
background: linear-gradient(135deg, oklch(0.96 0.18 100), oklch(0.92 0.22 120));