0% · #ffde2b
L 0.92 · C 0.18 · H 90
Molten Core
A radial gradient sweeping from pastel lime to deep orange, interpolated in OKLCH across 3 stops so the midpoint stays vivid instead of greying out.
- Type
- Radial
- Stops
- 3
- Space
- OKLCH
- Direction
- circle at 50% 50%
The stops behind Molten Core
Endpoints sit closest to gold and firebrick.
50% · #ff5d00
L 0.7 · C 0.24 · H 50
100% · #a9000c
L 0.45 · C 0.2 · H 25
Create Molten Core in PHP
Build a radial gradient from the catalog stops, then let PHPColor assign their positions.
<?php
use PhpColor\Color\Gradient\Gradient;
$gradient = Gradient::radial(
'oklch(0.92 0.18 90)',
'oklch(0.70 0.24 50)',
'oklch(0.45 0.20 25)',
);
use PhpColor\Color\Gradient\Gradient;
$gradient = Gradient::radial(
'oklch(0.92 0.18 90)',
'oklch(0.70 0.24 50)',
'oklch(0.45 0.20 25)',
);
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 Molten Core 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: radial-gradient(circle at 50% 50%, oklch(0.92 0.18 90), oklch(0.70 0.24 50), oklch(0.45 0.20 25));
background: radial-gradient(circle at 50% 50%, oklch(0.92 0.18 90), oklch(0.70 0.24 50), oklch(0.45 0.20 25));