0% · #df000d
L 0.55 · C 0.25 · H 25
Blood Moon
A mid radial gradient in orange tones, interpolated in OKLCH across 3 stops so the ramp stays even from end to end.
- Type
- Radial
- Stops
- 3
- Space
- OKLCH
- Direction
- circle at 50% 50%
The stops behind Blood Moon
Endpoints sit closest to red and black.
50% · #240001
L 0.15 · C 0.08 · H 20
100% · #050101
L 0.08 · C 0.02 · H 15
Create Blood Moon 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.55 0.25 25)',
'oklch(0.15 0.08 20)',
'oklch(0.08 0.02 15)',
);
use PhpColor\Color\Gradient\Gradient;
$gradient = Gradient::radial(
'oklch(0.55 0.25 25)',
'oklch(0.15 0.08 20)',
'oklch(0.08 0.02 15)',
);
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 Blood Moon 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.55 0.25 25), oklch(0.15 0.08 20), oklch(0.08 0.02 15));
background: radial-gradient(circle at 50% 50%, oklch(0.55 0.25 25), oklch(0.15 0.08 20), oklch(0.08 0.02 15));