Neon 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
45deg

The stops behind Neon Lime

Endpoints sit closest to greenyellow and yellow.

0% · #abff00 L 0.92 · C 0.25 · H 130
100% · #ddd800 L 0.85 · C 0.28 · H 110

Create Neon 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(
    45,
    'oklch(0.92 0.25 130)',
    'oklch(0.85 0.28 110)',
);
use PhpColor\Color\Gradient\Gradient; $gradient = Gradient::linear( 45, 'oklch(0.92 0.25 130)', 'oklch(0.85 0.28 110)', );

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 Neon 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(45deg, oklch(0.92 0.25 130), oklch(0.85 0.28 110));
background: linear-gradient(45deg, oklch(0.92 0.25 130), oklch(0.85 0.28 110));