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.
Build a Gradient with a Measured Repeat
Repeating gradient preview
Repeat period 24px
Two stops at the same position give the pattern a sharp boundary.
Generated stylesheet
Preview composited on white. HEX stores alpha in 8 bits; decimal alpha is retained in RGB and HSL.
#7D9065rgb(125, 144, 101)hsl(86.512 17.551% 48.039%)rgb(49.02% 56.471% 39.608%)0.4902, 0.5647, 0.3961, 1--color: #7D9065;Color names use standard CSS keywords, such as red or rebeccapurple.
Repeating Gradient Generator: how to use it
- Choose a starting pattern or select linear, radial or conic and set a repeat period in its displayed unit.
- Edit the stop colors and positions. Give two stops the same position to create a sharp boundary.
- 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.