Copper Rust

A linear gradient sweeping from light amber to deep teal, interpolated in OKLCH across 3 stops so the midpoint stays vivid instead of greying out.

Type
Linear
Stops
3
Space
OKLCH
Direction
45deg

The stops behind Copper Rust

Endpoints sit closest to sandybrown and darkslategray.

0% · #ffaf76 L 0.82 · C 0.12 · H 55
50% · #b8492e L 0.55 · C 0.15 · H 35
100% · #005e4a L 0.42 · C 0.1 · H 175

Create Copper Rust 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(
    45,
    'oklch(0.82 0.12 55)',
    'oklch(0.55 0.15 35)',
    'oklch(0.42 0.10 175)',
);
use PhpColor\Color\Gradient\Gradient; $gradient = Gradient::linear( 45, 'oklch(0.82 0.12 55)', 'oklch(0.55 0.15 35)', 'oklch(0.42 0.10 175)', );

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 Copper Rust 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(45deg, oklch(0.82 0.12 55), oklch(0.55 0.15 35), oklch(0.42 0.10 175));
background: linear-gradient(45deg, oklch(0.82 0.12 55), oklch(0.55 0.15 35), oklch(0.42 0.10 175));

Keep exploring

Build on Copper Rust