Rusty Metal

A deep linear gradient in orange 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 Rusty Metal

Endpoints sit closest to sienna and maroon.

0% · #b8492e L 0.55 · C 0.15 · H 35
100% · #53230a L 0.32 · C 0.08 · H 45

Create Rusty Metal 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.55 0.15 35)',
    'oklch(0.32 0.08 45)',
);
use PhpColor\Color\Gradient\Gradient; $gradient = Gradient::linear( 180, 'oklch(0.55 0.15 35)', 'oklch(0.32 0.08 45)', );

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 Rusty Metal 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.55 0.15 35), oklch(0.32 0.08 45));
background: linear-gradient(180deg, oklch(0.55 0.15 35), oklch(0.32 0.08 45));

Keep exploring

Build on Rusty Metal