Earth Core

A radial gradient sweeping from light amber to dark 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 center

The stops behind Earth Core

Endpoints sit closest to coral and black.

0% · #fa8c58 L 0.75 · C 0.15 · H 45
50% · #812e19 L 0.42 · C 0.12 · H 35
100% · #2c0001 L 0.18 · C 0.08 · H 25

Create Earth 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.75 0.15 45)',
    'oklch(0.42 0.12 35)',
    'oklch(0.18 0.08 25)',
);
use PhpColor\Color\Gradient\Gradient; $gradient = Gradient::radial( 'oklch(0.75 0.15 45)', 'oklch(0.42 0.12 35)', 'oklch(0.18 0.08 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 Earth 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 center, oklch(0.75 0.15 45), oklch(0.42 0.12 35), oklch(0.18 0.08 25));
background: radial-gradient(circle at center, oklch(0.75 0.15 45), oklch(0.42 0.12 35), oklch(0.18 0.08 25));