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.
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%);
| Parameter | Valid Options | Description |
|---|---|---|
| shape | circle | ellipse | Determines whether color transitions emanate uniformly (1:1) or conform to container aspect ratios. |
| size | farthest-corner | closest-side | closest-corner | farthest-side | Defines the boundary geometry where the final color stop terminates relative to element edges. |
| position | center | 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?
What are the four W3C radial gradient size keywords?
How do custom center position coordinates work?
Are CSS radial gradients GPU-accelerated and responsive?
Related Design & Color Instruments
Procedural Palette Generator
Generate balanced 5-color palettes based on geometric angles on the HSL color wheel with lockable color slots.
Image Palette Extractor
Extract 6 dominant theme colors from any uploaded image using Web Worker K-Means clustering off the main thread.
CSS Gradient Maker
Design linear and radial CSS gradients with 360-degree angle control, multi-stop adjustments, and instant code export.
Color Shades Step Generator
Generate smooth linear step interpolations from any base color towards pitch black (#000000).