0% · #bad7ba
L 0.85 · C 0.05 · H 145
Moss & Ash
A light linear gradient in green 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 Moss & Ash
Endpoints sit closest to darkseagreen and gray.
100% · #899287
L 0.65 · C 0.02 · H 140
Create Moss & Ash 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.85 0.05 145)',
'oklch(0.65 0.02 140)',
);
use PhpColor\Color\Gradient\Gradient;
$gradient = Gradient::linear(
45,
'oklch(0.85 0.05 145)',
'oklch(0.65 0.02 140)',
);
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 Moss & Ash 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.85 0.05 145), oklch(0.65 0.02 140));
background: linear-gradient(45deg, oklch(0.85 0.05 145), oklch(0.65 0.02 140));