The SVG <radialGradient> element defines a reusable color blend that radiates from a center. Put it in <defs>, give it an id, add <stop> colors, then paint shapes with fill="url(#id)" or stroke="url(#id)".
Center and size come from cx, cy, and r (defaults 50%). Use fx/fy for a highlight. For straight blends, see linear gradients.
Baseline · Widely available.
<radialGradient> and <stop> are stable across modern browsers since about July 2015.
Deprecated: xlink:href.
Do not reuse gradients with xlink:href. Prefer a full local definition, or the modern href attribute when you need a template reference.
Not CSS radial-gradient().
SVG radialGradient paints SVG shapes. CSS radial-gradient() paints HTML boxes. They are separate APIs.
0% stop maps to the start circle defined by fx, fy, and fr.
100% stop maps to the end circle defined by cx, cy, and r.
Larger fr keeps the first color solid longer before blending.
Default fr is 0% (a point focus).
Edge Cases & Pitfalls
Most broken radials are ids, missing url(), or unit surprises.
id
url(#id) must match
Typos or duplicate ids mean a solid black/default fill instead of your blend.
units
objectBoundingBox is default
Percent cx/r scale with the shape. Non-square boxes can make rings look elliptical. Use userSpaceOnUse for fixed coordinates.
focus
Keep the focus inside the end circle
If fx/fy sit outside the circle of radius r, browsers clamp the focus — the highlight may look unexpected.
stroke
Thin strokes hide blends
When using stroke="url(#id)", raise stroke-width so the gradient band is visible.
Compatibility
Browser Support
SVG <radialGradient> is supported in every modern browser.
✓ Baseline · Widely available
SVG <radialGradient>
Widely available since about July 2015. Chrome, Firefox, Safari, Edge, and Opera support radialGradient, stop, and url(#id) paint servers. Internet Explorer 9+ supports basic SVG gradients. The fr attribute is newer; older engines may treat it as 0%.
98%Global support (approx.)
Google ChromeAll modern
Full support
Mozilla FirefoxAll modern
Full support
Apple SafariAll modern
Full support
Microsoft EdgeAll modern
Full support
OperaAll modern
Full support
Samsung InternetAll modern
Full support
Internet Explorer9+
Supported
<radialGradient>Widely supported
Bottom line: Safe for production icons, glows, and UI fills. Prefer local defs with unique ids over deprecated xlink:href reuse.
Remember
Key Takeaways
Define in <defs> with an id.
Geometry:cx, cy, r (+ optional fx/fy/fr).
Colors:<stop offset stop-color>.
Apply:fill or strokeurl(#id).
One line: stops in <radialGradient>, paint with url(#id).
UA style
Default CSS Settings
Gradients are paint servers — they have no visible box of their own. Useful defaults to remember: