Gradient Palette Creator
Build production-ready gradients — linear, radial or conic, any number of stops, any angle — with a live preview and copy-paste CSS. No muddy midpoints, no guesswork.
CSS output & variations
background: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);Tip: for blends between saturated colors, prefix with in oklch (CSS Color 4) to avoid the gray midpoint sRGB produces.
Text over a gradient must pass contrast at its lightest and darkest point — verify the worst case in the Accessibility Checker.
A gradient is a path through color space
A gradient isn't just two colors and a direction — it's a path the renderer walks from one stop to the next, and where that path travels through color space decides whether the result looks rich or muddy. By default CSS interpolates in sRGB, which draws a straight line between colors in a non-perceptual space; blend two saturated complements that way and the line passes through the desaturated gray at the center, which is why so many amateur gradients have a dishwater middle. The fixes are to steer the path with an intermediate stop in a brighter related hue, choose analogous colors that never cross the gray zone, or tell CSS to interpolate in a perceptual space with in oklch — the modern, cleanest answer.
The three gradient types are three different geometries of that path. Linear walks it along a straight line at your chosen angle — the workhorse for backgrounds and buttons. Radial radiates it outward from a center, which is how you build spotlights, glows and depth. Conic sweeps it around a center like a clock hand, which is what makes color wheels, pie charts and loading rings. Same stops, three very different results — the deep-analysis panel shows all three at once so you can feel the difference.
Then there's legibility, the thing gradients quietly break. Contrast for any text on a gradient is governed by the worst point the text crosses, not the average, so a hero that looks fine in the middle can fail where the gradient is lightest or darkest. The robust patterns are to keep the gradient within a narrow lightness band behind text, drop a translucent scrim between gradient and text, or position text only where contrast holds — and to test the extreme stops, not eyeball the midpoint.
So build the gradient here — pick the geometry, place the stops, dial the angle, and copy the CSS straight into your stylesheet or a Tailwind arbitrary value. Source the stop colors from a coherent set in the Palette Generator, read any stop in every format with the Converter, and verify overlay text in the Accessibility Checker.
Trusted by Web & Product Designers
“Multi-stop with live angle and all three gradient types in one place, plus copy-paste CSS — this is the gradient tool I keep open. The note about sRGB muddiness and the in-oklch fix is the kind of detail most generators never mention. Presets are tasteful, not garish.”
“Conic + radial + linear with a real stop editor and instant CSS that drops straight into Tailwind arbitrary values. The accessibility reminder for text overlays saved a hero section. Fast, in-browser, clean — a proper instrument.”
“Adding stops and nudging positions is smooth, and switching gradient type keeps my colors. Would love drag-on-the-bar stop editing, but the sliders are precise enough. The spectrum conic preset is a great starting point for loaders.”
“Exports exactly the CSS I need, including conic with a from-angle. Pairs perfectly with the palette generator — build a harmony, then blend it into a gradient. The muddy-midpoint explanation finally made me switch to oklch interpolation.”
Love using our calculator?
Related color tools
Similar Calculators
More tools in the same category
Multi-Format Color Converter
HEX, RGB, HSL, CMYK, LAB, LCH and OKLCH at once, live — with WCAG contrast, luminance and a tint/shade ramp.
Accessibility Color Checker
Test text/background pairs against WCAG AA/AAA contrast, with a one-click OKLCH fix and color-blind-aware guidance.
Color Scale Generator
Perceptually-even 50-950 shade scales from one base color, OKLCH-correct, with CSS export.
Color Palette Generator
Complementary, triadic, tetradic and more — harmonies generated in OKLCH with a live preview.
Color Distance Calculator
Perceptual color difference via CIEDE2000, Delta-E 76 and OKLab — the print and brand-matching standard.
Color Blind Simulator
Preview palettes through deuteranopia, protanopia and tritanopia, with a confusable-pair warning.
Often Used Together
Complementary tools for complete analysis
Related Articles
Dive deeper with our expert guides and tutorials related to Gradient Palette Creator
linear / radial / conic · unlimited stops · copy-paste CSS · tip: interpolate in oklch for clean blends · Last reviewed: 2026-06