CSS Concentric Circles Background

Concentric circles in pure CSS: rings drawn with repeating-radial-gradient, tiled into a grid of targets. Set ring width and tile size live, then copy the code.

#4b9c41
#8fc188
96px
4px
.bg-concentric-circles {
  --bg: #4b9c41;
  --fg: #8fc188;
  --size: 96px;
  --ring: 4px;
  background-color: var(--bg);
  background-image: repeating-radial-gradient(circle, var(--fg) 0 var(--ring), transparent calc(var(--ring) + 1px) calc(var(--ring) * 3 - 1px), var(--fg) calc(var(--ring) * 3));
  background-size: var(--size) var(--size);
}
<div class="
  [--bg:#4b9c41]
  [--fg:#8fc188]
  [--size:96px]
  [--ring:4px]
  [background-color:var(--bg)]
  [background-image:repeating-radial-gradient(circle,_var(--fg)_0_var(--ring),_transparent_calc(var(--ring)_+_1px)_calc(var(--ring)_*_3_-_1px),_var(--fg)_calc(var(--ring)_*_3))]
  [background-size:var(--size)_var(--size)]
"></div>
<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>Concentric Circles — CSS background</title>
  <style>
    html, body { height: 100%; margin: 0; }
    .bg-concentric-circles {
      --bg: #4b9c41;
      --fg: #8fc188;
      --size: 96px;
      --ring: 4px;
      background-color: var(--bg);
      background-image: repeating-radial-gradient(circle, var(--fg) 0 var(--ring), transparent calc(var(--ring) + 1px) calc(var(--ring) * 3 - 1px), var(--fg) calc(var(--ring) * 3));
      background-size: var(--size) var(--size);
    }
  </style>
</head>
<body class="bg-concentric-circles"></body>
</html>

Save the pattern as an image, with your current colors and settings.

Concentric Circles in other colors

Click a color to try it in the preview above, then copy the code.

Browse by color: Red · Orange · Yellow · Green · Teal · Blue · Purple · Pink

How the concentric circles pattern works

The rings come from repeating-radial-gradient(). Like a normal radial gradient it spreads out from the center of each tile, but it repeats one band of color stops over and over: --fg for --ring pixels, transparent until three times --ring, then --fg again. Each repeat is one ring plus the gap after it.

The stops are one pixel apart instead of touching, so each ring edge gets a one-pixel blend. Hard stops on a curve look jagged. This small blend keeps the circles smooth.

background-size turns the rings into a grid of targets. Each --size tile has its own set of rings, and the outer rings are cut off where tiles meet, which forms a repeating pattern. Remove background-size and you get one large set of rings spreading from the center of the element instead.

Use concentric circles for retro and mid-century designs, music and audio themes, and bold hero backgrounds. The Tailwind tab outputs the same gradient for Tailwind v4.