Sunlit Treeline gradient

A 2-color linear CSS gradient from #FBE491 to #002800, interpolated in OKLCH so the middle stays vivid.

ForestTwo-toneYellowGreen

Stops

HEXRGBOKLCHPosition
#FBE491 rgb(251, 228, 145) oklch(92% 0.106 94.4) 0%
#002800 rgb(0, 40, 0) oklch(24% 0.082 142.5) 100%

CSS

The first declaration is a plain sRGB gradient for every browser. The second interpolates in OKLCH, which keeps the middle as vivid as the ends.

background: linear-gradient(180deg, #FBE491, #002800);
background: linear-gradient(180deg in oklch, #FBE491, #002800);

Tailwind CSS v4

bg-linear-180/oklch from-[#FBE491] to-[#002800]

Make it your own

Change the stops, angle and type in the Gradient Maker, or turn the stops into a palette.