This midnight to purple to slate 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 purple to slate 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.

#00173f#9b53e1#005d71

Gradient guide

How to use this midnight to purple to slate 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

9.84:1

WCAG AA friendly

Black text

2.91:1

Needs overlay

Pre-rendered CSS output

.css-gradient-pro-gradient {
  background: linear-gradient(135deg, #00173f 0%, #9b53e1 50%, #005d71 100%);
  background: linear-gradient(135deg, #00173f 0%, #011842 4.5%, #041b4b 9.1%, #0e215c 13.6%, #1e2873 18.2%, #33308e 22.7%, #4d39a8 27.3%, #6642bf 31.8%, #7d49cf 36.4%, #8e4fd9 40.9%, #9852df 45.5%, #9b53e1 50%, #9854e1 54.5%, #8e56e1 59.1%, #7c59e0 63.6%, #635dda 68.2%, #4361cc 72.7%, #1b64b7 77.3%, #00649f 81.8%, #00628b 86.4%, #00607c 90.9%, #005e74 95.5%, #005d71 100%);
  background: linear-gradient(135deg in oklch, oklch(21.66% 0.0829 258.73) 0%, oklch(59.49% 0.2089 304.03) 50%, oklch(44.21% 0.0800 219.13) 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.