Creating CSS3 Radial Gradients

For Radial Gradients, set color stops. The default shape is Ellipse, but you can also set other shapes like circle. Set at least two color stops for Radial Gradients in CSS.

Following is the code for creating radial gradients using CSS −


 Live Demo

<!DOCTYPE html>
body {
   font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
#radial {
   height: 200px;
   width: 200px;
   background-image: radial-gradient(
      rgb(255, 0, 106),
      rgb(2, 0, 128),
      rgb(0, 255, 42)
<h1>Radial Gradient Example</h1>
<div id="radial"></div>


The above code will produce the following output −