GamutDesk Logo
GamutDesk

CSS Radial Gradient Generator

Free browser-native CSS radial gradient generator. Create circular and elliptical gradients with custom size, center positioning, and instant cross-browser CSS code export.

Client-Side ArchitecturePrivate Client-Side Processing
radial-gradient(circle farthest-corner at center, ...)
Quick Presets:
Geometry Shape
W3C Size Extent
Cardinal Position
Focal Epicenter Coordinates (X% & Y%)
Horizontal (X-Axis):50%
Vertical (Y-Axis):50%
Color Stops (3/8)
0%
60%
100%
CSS Radial Gradient Rule
background: #3B82F6;
background: radial-gradient(circle farthest-corner at center, #3B82F6 0%, #1E3A8A 60%, #0F172A 100%);

Technical Specification & Mathematical Principles

Understanding W3C Radial Gradient Syntax (Shape, Size, and Position)

In W3C CSS Images Module Level 3, radial gradients calculate color interpolation outward from an origin point along a progressive radius:

radial-gradient([ [ <shape> || <size> ] [ at <position> ]? ]? , <color-stop-list>)

Example W3C standard declaration:

background: #0F172A;
background: radial-gradient(circle farthest-corner at 50% 50%, #38BDF8 0%, #0F172A 100%);
ParameterValid OptionsDescription
shapecircle | ellipseDetermines whether color transitions emanate uniformly (1:1) or conform to container aspect ratios.
sizefarthest-corner | closest-side | closest-corner | farthest-sideDefines the boundary geometry where the final color stop terminates relative to element edges.
positioncenter | top left | <x>% <y>%Focal epicenter where interpolation originates. Defaults to center (50% 50%).
stops<color> <stop-pos>%Monotonically ordered color stop positions spanning along the radius vector.

Linear vs. Radial Gradients: When to Use Each in UI Design

Linear and radial gradients serve distinct visual functions in modern user interfaces:

  • Linear Gradients: Best suited for directional movement, hero section backgrounds, progress indicators, and primary call-to-action buttons. You can fine-tune linear gradient angles with degree accuracy across 360-degree vectors.
  • Radial Gradients: Ideal for focal spotlights, ambient card glows, lens vignette effects, and circular avatar badges where visual attention must be concentrated toward a specific coordinate.

Gradient Cluster Navigation

Explore the full CSS Gradient Generator suite to combine linear and radial modes, or learn how to create radial glow typography with our gradient text tool using native background clipping.

Frequently Asked Questions

What is the difference between circle and ellipse in W3C radial gradients?
A 'circle' gradient maintains a constant 1:1 aspect ratio across the radius regardless of the element box dimensions. An 'ellipse' gradient scales independently along the X and Y axes, stretching proportionally to match rectangular containers.
What are the four W3C radial gradient size keywords?
W3C defines farthest-corner (gradient ends at the farthest corner from center, default), closest-side (ends at the nearest edge), closest-corner (ends at the nearest corner), and farthest-side (ends at the farthest edge).
How do custom center position coordinates work?
The origin coordinates define the focal epicenter where the 0% stop begins. You can specify standard cardinal anchors like 'center' (50% 50%) or 'top left' (0% 0%), or use precise percentages like '35% 70%'.
Are CSS radial gradients GPU-accelerated and responsive?
Yes. Modern web browsers render CSS radial gradients via device GPU shaders. As containers resize or orientations change, the browser dynamically recalculates gradient geometry with zero rasterization latency.

Related Design & Color Instruments