Radial gradients radiate outward from a central point, making them ideal for spotlight effects, soft glows, vignettes, and circular colour transitions that linear gradients cannot achieve.
Loading Gradient…
Choose circle or ellipse shape
Set gradient centre position (x/y)
Adjust colour stops and transition smoothness
Generates browser-compatible CSS output
Drop the Gradient into any page — blog post, product docs, intranet, school portal — with a single line of HTML. Your visitors get the full tool, processed entirely in their browser. No backend, no uploads, no signup.
Embed code
<iframe
src="https://www.fixtools.io/css-tool/gradient?embed=1"
width="100%"
height="780"
frameborder="0"
style="border:0;border-radius:16px;max-width:900px;"
title="Gradient by FixTools"
loading="lazy"
allow="clipboard-write"
></iframe>Attribution-friendly: a small "Powered by FixTools" link appears in the embed footer.
A radial gradient radiates from a centre point outward in concentric rings. The syntax gives you control over three main aspects: the shape (circle or ellipse), the ending shape size (closest-side, farthest-corner, and two other keywords), and the centre position using the "at" keyword. The default is an ellipse that stretches to the farthest corner of the element. By specifying circle, you force a perfectly round gradient regardless of element dimensions. The centre position defaults to the element centre but can be moved to any x/y coordinate using percentages, pixels, or keywords. Adjusting the centre position moves the focal point away from the middle, enabling off-centre spotlight effects, asymmetric glows, and light-source simulations that add real visual depth to backgrounds and decorative elements.
The colour stops in a radial gradient work identically to those in linear gradients. Each stop has a colour and an optional position. The innermost stop at 0% is the gradient origin, and the outermost stop at 100% falls at the ending shape boundary. Four size keywords control where that boundary falls: farthest-corner (the default) extends the ending shape to the farthest corner of the element; closest-side stops the gradient at the nearest edge, creating a tighter and more concentrated effect; farthest-side extends to the farthest edge; closest-corner extends to the nearest corner. Choosing between these keywords significantly changes how the gradient fills the element, especially on non-square containers. All modern browsers support the full radial-gradient syntax without vendor prefixes.
FixTools generates the radial-gradient() declaration with your chosen shape, position, and colour stops assembled in the correct argument order. Copy the output and apply it directly as background or background-image on any element. The generated CSS is standard syntax that requires no modification before use in any browser or framework environment.
Mobile and responsive considerations deserve specific attention with radial gradients because they behave very differently on tall narrow viewports than on wide desktop ones. The default ellipse shape stretches to match the element aspect ratio, so a gradient that looks like a balanced soft glow on a wide desktop hero becomes a tall narrow oval on a portrait phone, which can read as visually awkward or unintentional. The circle keyword fixes the shape but then the closest-side and closest-corner size keywords change behaviour as the viewport rotates between portrait and landscape orientations. The most reliable strategy for responsive radial gradients is to use circle with closest-side or a specific pixel size, set a fixed background-size, and centre the gradient with a stable focal point. Testing on real devices at multiple viewport widths catches the asymmetric behaviours that DevTools responsive emulation can miss, particularly on tall foldable phone screens.
Configure your radial gradient settings. Example output: background: radial-gradient(circle at center, #f093fb 0%, #f5576c 50%, #4facfe 100%)
Step-by-step guide to radial gradient css generator:
Open the gradient tool
Click "Open CSS Gradient Generator" to launch the visual editor. Once it loads, find the gradient type selector and choose Radial Gradient. The preview and controls will switch to radial mode, showing shape and position controls that are specific to the radial-gradient() function.
Choose shape
Select circle to produce a perfectly round gradient that maintains its circular shape regardless of the element's width and height. Select ellipse (the default) to allow the gradient to stretch proportionally to fit the element dimensions, producing an oval that fills the element more naturally on non-square containers.
Set the centre position
Set the x and y coordinates of the gradient focal point using the position controls. The default is center center (50% 50%). Move the focal point toward a corner or edge to create off-centre spotlights, asymmetric glows, and light-source effects. You can use percentages for proportional positioning or pixel values for precise placement.
Add colour stops
Set the innermost colour stop first at 0% and the outermost stop last at 100%. Add intermediate stops for multi-colour radial effects. The first stop represents the colour at the gradient's focal centre and each subsequent stop defines the colour at its percentage radius from the centre point.
Copy CSS output
Click the copy button on the output panel to copy the complete background: radial-gradient(...) declaration to your clipboard. Paste it directly into your stylesheet or component styles. The output is ready to use without modification.
Common situations where this approach makes a real difference:
Spotlight effect on a dark background
A developer wants a dark hero section with a subtle light spotlight that suggests depth and draws the eye toward the centre of the layout. They generate a radial gradient using circle at 50% 40%, starting from a semi-transparent pale colour at the centre and fading to the dark background colour at the outer stop. Applied as background-image layered over a solid dark background-color on the hero section, the effect mimics stage lighting without any image assets and loads with zero HTTP requests at any screen resolution.
Soft glow behind an icon or badge
A UI designer wants a soft coloured glow behind a product icon to make it stand out on an otherwise flat white card. They generate a small radial circle gradient from a pale, lightly tinted version of the icon colour at 0% to fully transparent at 70%. They set background-size on the icon container to match the glow dimensions and centre it behind the icon using background-position. The result is a lightweight glow that reinforces the icon visually without requiring any raster image, SVG filter, or box-shadow workaround.
Vignette overlay on a photo
A content website needs a subtle vignette effect on featured images to direct the viewer's eye toward the centre of each photo. A developer creates a pseudo-element positioned absolutely over each image and applies a radial-gradient overlay: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.5) 100%). The overlay darkens only the image edges while leaving the central subject fully visible, producing a cinematic framing effect with a single CSS declaration and no image manipulation required.
Loading spinner colour fill
A developer creates a custom circular loading indicator and wants it to have a radial gradient fill that emanates from the centre rather than a flat colour. They generate a circle radial gradient from a vivid inner colour at 0% to a deeper outer shade at 100%, apply it as the background of the spinner element, and combine it with a CSS clip-path: circle() to produce a perfectly round spinner with a glowing centre. The gradient adds visual depth to the indicator and makes the loading state feel more intentional and designed.
Get better results with these expert suggestions:
Use "closest-side" for a tighter spotlight
The default size keyword "farthest-corner" extends the gradient ending shape to the farthest corner of the element, which can make the gradient look diluted or washed out on wide rectangular containers because the colour transitions too gradually. Switching to "closest-side" confines the gradient ending shape to the nearest edge of the element, creating a more concentrated and dramatic glow or spotlight effect. This keyword is especially useful for wide hero banners and landscape-oriented cards where the default size spreads the gradient too thin.
Stack radial gradients for multi-light effects
Multiple radial gradients can be layered as comma-separated background values. Position each gradient at a different x/y coordinate using the "at" keyword and assign each a different colour. The first gradient in the list renders on top. This technique simulates multiple light sources illuminating a single background element from different directions and positions. It creates rich, organic-looking colour fields that are widely used in modern glassmorphism, mesh gradient, and aurora-style UI designs.
Offset the centre for asymmetric depth
A radial gradient centred at 50% 50% produces a symmetric pattern that can look flat on large backgrounds. Moving the focal point toward a corner, such as "at 20% 80%", creates an asymmetric glow that implies a light source positioned off to one side. The contrast between the brighter focal area and the darker extremity adds perceived depth to the background. This technique pairs well with hero sections where the main content is positioned on the side opposite the focal point.
Use background-size to control gradient scale
Setting background-size on an element with a radial gradient lets you scale the gradient independently of the element dimensions. For example, background-size: 80% 80% with background-position: center concentrates the gradient into the central 80% of the element, leaving the outer edges at the colour of the last stop. This creates a contained glow or spotlight effect without adjusting the gradient function itself, and it can be easily animated by transitioning background-size for an expanding or pulsing glow animation.
More use-case guides for the same tool:
Other tools you might find useful:
Open the full Gradient — free, no account needed, works on any device.
Open Gradient →Free · No account needed · Works on any device