Gradient maker
Build linear, radial or conic gradients, add stops, and switch to OKLCH interpolation to avoid the muddy middle that plain sRGB blends often produce.
sRGB vs OKLCH midpoint
How to use it
- Choose linear, radial or conic, and set the angle.
- Edit stop colors and positions, or add and remove stops.
- Toggle between sRGB and OKLCH interpolation and compare the two strips.
- Copy the CSS, or download SVG or PNG.
Why OKLCH gradients look better
A gradient from blue to yellow in sRGB passes through a dull gray in the middle, because averaging RGB channels drops saturation. Interpolating in OKLab or OKLCH keeps perceived lightness and chroma moving smoothly, so the midpoint stays vivid. Modern browsers support this natively with linear-gradient(in oklch, …); Palg writes that syntax plus a precomputed fallback with extra stops for older browsers.
Avoiding banding
Banding — visible steps in a smooth gradient — comes from too few distinct values over a large area, especially in dark, low-chroma ranges. Keep long gradients away from near-black, add a mid stop instead of stretching two distant colors, and for exported images a subtle noise layer helps. Our guide on gradients that don’t band goes deeper.
Exports
CSS uses the modern syntax with a fallback line. SVG uses a linearGradient or radialGradient with the precomputed stops, so it renders the same everywhere. PNG renders at 1600×900 on a canvas. Conic gradients are exported as CSS and PNG; SVG has no native conic gradient.
FAQ
- Do all browsers support OKLCH gradients?
- Current Chrome, Edge, Safari and Firefox do. Palg adds a fallback gradient with extra sRGB stops for older ones.
- How many stops can I add?
- Up to ten.
- Can I save gradients?
- Yes, to your on-device library alongside palettes.
- Why is there no SVG for conic gradients?
- SVG has no conic gradient element; use the CSS or PNG export instead.
More Palg tools
- Palette generator — Press Space for a new palette, lock what you like, keep going.
- Explore palettes — 600+ hand-tuned palettes by mood, season, industry and era.
- Image color picker — Pull a palette from any photo, then fine-tune the pickers.
- Contrast checker — WCAG 2.2 AA/AAA ratios, fixes that pass, APCA as a second opinion.
- Color blindness simulator — See palettes and images through seven types of color vision.
- Template previews — Your palette on a landing page, app, dashboard, poster and more.
- Palette collage — Lay out swatches and a photo, export a PNG mood card.
- Color variations — Tints, shades, tones and a Tailwind-style 50–950 scale.
- Color Assistant — Describe a mood or brand; get three rule-based palettes with reasons.
- Your library — Saved palettes and gradients in collections, stored on this device.
Background reading: color guides · 1,000 named colors · install Palg as an app