Color · Made a little simpler

Repeating Gradient Generator

Set a repeat period, edit stops at positions within it and change the angle or center. Preview the CSS gradient directly or use offset square tiles and colored gaps.

Free to useNo account neededProcessed on your device
Your workspaceProcessed on your device

Repeating gradient preview

Repeat period 24px

Two stops at the same position give the pattern a sharp boundary.

Starting patterns
Gradient and period
Color stops
Background tiles

Tiles repeat the painted background as a square. The repeat period still sets the spacing within the gradient.

Generated stylesheet

#7D9065rgb(125, 144, 101)

Preview composited on white. HEX stores alpha in 8 bits; decimal alpha is retained in RGB and HSL.

HEX#7D9065
RGBrgb(125, 144, 101)
HSLhsl(86.512 17.551% 48.039%)
RGB percentrgb(49.02% 56.471% 39.608%)
Normalized RGBA0.4902, 0.5647, 0.3961, 1
CSS variable--color: #7D9065;

Color names use standard CSS keywords, such as red or rebeccapurple.

Add this tool to your website

Paste this code into your page to add the tool and a visible ToolMellow credit link.

HTML embed code
Preview embed

Repeating Gradient Generator: how to use it

  1. Choose a starting pattern or select linear, radial or conic and set a repeat period in its displayed unit.
  2. Edit the stop colors and positions. Give two stops the same position to create a sharp boundary.
  3. Compare the repeating background and optional tile gaps or offsets, then copy or download the CSS.

Limits and notes

Use two to twelve ordered stops. Colors accept CSS names and numeric sRGB HEX, RGB and HSL with alpha. The pattern runs as native CSS without loading an image.

How your privacy works →

Repeating Gradient Generator: common questions

What determines the width of one stripe?

Stripe width comes from the distance between its stops. With a 24 px period, a hard edge at 50% gives two 12 px bands.

When should I use degrees for the period?

A conic gradient repeats around an axis. Use degrees or a percentage of one full turn. Linear and radial gradients use lengths or percentages of their gradient line.

How do offsets differ from the gradient’s center?

The center changes the point from which one radial or conic gradient is painted. Background offsets move the entire square tile when the tile option is enabled.

Guides