Back to gallery

Midnight and Purple CSS Gradients

Midnight and Purple CSS gradients pair midnight with purple for layouts that need a clear two-color system. This page generates 8 reusable gradient variations from the same pair, including linear blends, radial lighting, conic sweeps, deeper backgrounds, brighter accents, and a hard split option. The goal is to make the color relationship easy to evaluate before you open a generator or copy a declaration into a project. Midnight sets one side of the visual temperature, while Purple changes the contrast, depth, and direction of the final effect. The related preset links below connect this pair back to real CSS Forge presets when matching tags exist, so the page is not isolated from the rest of the gallery. Use the generated gradients for quick exploration, then move to the gradient generator when you need exact angle, center, or stop control.

Gradients

Generated gradient variations

Linear Field

A direct diagonal blend for hero panels and cards.

background: linear-gradient(135deg, #1e1b4b 0%, #9333ea 100%);

Reverse Linear

A reversed angle that changes the visual weight of the same pair.

background: linear-gradient(45deg, #9333ea 0%, #1e1b4b 100%);

Soft Radial

A softer center-weighted gradient with a clear outer color.

background: radial-gradient(circle at center, #504d73 0%, #1e1b4b 38%, #9333ea 100%);

Corner Radial

A corner-lit gradient for cards with visible direction.

background: radial-gradient(circle at top left, #ab60ef 0%, #9333ea 34%, #16153c 100%);

Conic Sweep

A conic sweep useful for badges and decorative blocks.

background: conic-gradient(from 45deg, #1e1b4b, #9333ea, #504d73, #1e1b4b);

Deep Blend

A deeper gradient for dark UI backgrounds.

background: linear-gradient(160deg, #16153c 0%, #1e1b4b 45%, #6a26af 100%);

Bright Blend

A brighter variation that keeps both colors visible.

background: linear-gradient(120deg, #504d73 0%, #1e1b4b 48%, #ab60ef 100%);

Split Accent

A hard split for graphic sections and comparison layouts.

background: linear-gradient(90deg, #1e1b4b 0%, #1e1b4b 42%, #9333ea 42%, #9333ea 100%);

Shadows

Matching shadow ideas

Related

Related CSS Forge presets