Palg

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.

90°

sRGB vs OKLCH midpoint

 

How to use it

  1. Choose linear, radial or conic, and set the angle.
  2. Edit stop colors and positions, or add and remove stops.
  3. Toggle between sRGB and OKLCH interpolation and compare the two strips.
  4. 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

Background reading: color guides · 1,000 named colors · install Palg as an app