Repeating Gradient Generator

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.

A few things to know.

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.

  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.