Skip to main content
Direct WebTools

CSS Gradient Generator

Generate linear, radial and conic CSS gradients from three editable color stops with alpha, with a live preview across card, button, hero and text surfaces.

From
Via
To

Gradient

The preview applies exactly the exported background-image; your browser computes the gradient interpolation.

Generated CSS

Examples

Click an example to fill in the type, angle, shape/position and the three stops. The CSS updates live; copying is up to you.

Parameters Generated CSS
Linear · angle 135° · #7C3AED → #EC4899 → #F59E0B linear-gradient(135deg, #7C3AED 0%, #EC4899 50%, #F59E0B 100%)
Radial (circle at top) · #3B82F6 → #93C5FD (α 60%) → #EFF6FF radial-gradient(circle at top, #3B82F6 0%, rgba(147, 197, 253, 0.6) 60%, #EFF6FF 100%)
Conic · from 45° · #22C55E → transparent (α 0%) → #16A34A conic-gradient(from 45deg, #22C55E 0%, rgba(255, 255, 255, 0) 50%, #16A34A 100%)
Linear · angle 90° · #F472B6 (α 70%) → #A78BFA → #38BDF8 linear-gradient(90deg, rgba(244, 114, 182, 0.7) 0%, #A78BFA 45%, #38BDF8 100%)

Frequently asked questions

When should I use linear, radial or conic?

Linear transitions colors along a direction (angle); radial radiates from a center point outward, as a circle or ellipse; conic sweeps colors around a point, like pie charts and progress rings.

How do the stops (color, alpha and position) work?

Each stop defines a hex color, an alpha (0–100%) and a position (0–100%). Alpha below 100% becomes rgba(); positions are sorted automatically and clamped to 0–100 before the CSS is emitted.

Where can the generated CSS be used?

The background-image declaration is plain CSS and works on any element (div, button, text with background-clip: text, hero sections). The screen preview shows the same gradient applied to sample surfaces.