Midnight Lantern

Customize and copy the CSS

Code

background: #4B0082;
background: linear-gradient(135deg, #4B0082 0%, #FFDF00 100%);

Color stops

Color stops
StopPositionHEXRGBHSLOKLCH
Stop 10%
Stop 2100%

Save image

Image size

About Midnight Lantern

Midnight Lantern blends two colors, starting at #4B0082 and ending at #FFDF00. By default it flows top-left to bottom-right at 135°, and its midpoint blends to #DF4B56.

The first color is deep (34% lightness) and the second one is very light (90%), with an average look that is vivid. The hue swings roughly 157° across the color wheel, which gives the gradient a wide, multi-tone sweep.

It suits cheerful highlights, promo ribbons and illustration backgrounds. Lightness changes a lot along this gradient (56% range), so no single text color holds up everywhere. Put text on a solid card or only over the stronger end.

A wide hue shift is where the default sRGB blend tends to go gray in the middle. Turn on OKLCH interpolation above for a cleaner path between #4B0082 and #FFDF00.

Midnight Lantern gradient: #4B0082, #FFDF00

Yellow color palettes

See all