This midnight to pink to lavender linear gradient is an editable CSS color system generated with OKLCH-aware perceptual interpolation, multi-stop fallback compilation, and Tailwind CSS utility export. It preserves chroma during transitions, reducing muddy gray midpoints while giving developers production-ready CSS and designers precise visual control.

SEO gradient page

midnight to pink to lavender linear CSS gradient

Edit this gradient in the studio, copy production CSS, compare accessibility, and explore related color combinations generated from the same seed colors.

#002159#db53b7#d1aaff

Gradient guide

How to use this midnight to pink to lavender gradient

This linear gradient can be used as a hero background, dashboard card treatment, app shell backdrop, social visual, or landing page accent. The color sequence is parsed directly from the URL, which means the page can be shared, indexed, and revisited.

The export system creates a standard CSS fallback, a perceptual multi-stop fallback, and a modern OKLCH declaration where appropriate. That makes the output useful for production interfaces, not just screenshots or static inspiration boards.

Use the related-gradient matrix below to explore adjacent hues, lightness shifts, and route variations. Each link is generated deterministically so search crawlers and users always see stable, crawlable internal links.

Interactive editor

Edit this gradient

Physics Preview Workspace

Perceptual CSS gradients without muddy midpoints.

Build layered linear, radial, conic, and mesh gradients using OKLCH, LAB, HCL, easing curves, blend modes, and fallback compilers.

White text

6.96:1

WCAG AA friendly

Black text

6.07:1

WCAG AA friendly

Pre-rendered CSS output

.css-gradient-pro-gradient {
  background: linear-gradient(135deg, #002159 0%, #db53b7 50%, #d1aaff 100%);
  background: linear-gradient(135deg, #002159 0%, #03225c 4.5%, #0f2565 9.1%, #212975 13.6%, #392f89 18.2%, #57359e 22.7%, #7a3cae 27.3%, #9b43b6 31.8%, #b749b9 36.4%, #cc4fb8 40.9%, #d752b7 45.5%, #db53b7 50%, #db54b9 54.5%, #db58be 59.1%, #dc60c8 63.6%, #dc69d4 68.2%, #db76e2 72.7%, #d984ee 77.3%, #d691f6 81.8%, #d49cfb 86.4%, #d2a4fe 90.9%, #d1a9ff 95.5%, #d1aaff 100%);
  background: linear-gradient(135deg in oklch, oklch(26.74% 0.1081 259.83) 0%, oklch(65.36% 0.2015 339.54) 50%, oklch(80.31% 0.1239 304.82) 100%);
  background-blend-mode: normal;
}

Full-width inspiration gallery

120 mathematically tuned gradient collections.

Each preset links to an indexable dynamic route with deterministic related gradients, metadata, crawlable anchors, and editable OKLCH controls.