0% · #4d5660
L 0.45 · C 0.02 · H 250
Charcoal Mist
A deep linear gradient in blue tones, interpolated in OKLCH across 2 stops so the ramp stays even from end to end.
- Type
- Linear
- Stops
- 2
- Space
- OKLCH
- Direction
- 180deg
The stops behind Charcoal Mist
Endpoints sit closest to dimgray and black.
100% · #1e2226
L 0.25 · C 0.01 · H 250
Create Charcoal Mist 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.45 0.02 250)',
'oklch(0.25 0.01 250)',
);
use PhpColor\Color\Gradient\Gradient;
$gradient = Gradient::linear(
180,
'oklch(0.45 0.02 250)',
'oklch(0.25 0.01 250)',
);
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 Charcoal Mist 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.45 0.02 250), oklch(0.25 0.01 250));
background: linear-gradient(180deg, oklch(0.45 0.02 250), oklch(0.25 0.01 250));