Gradient Generator
background: linear-gradient(135deg, #0f766e 0%, #0891b2 100%);
Build linear & radial gradients visually and copy the CSS | Free & Private
background: linear-gradient(135deg, #0f766e 0%, #0891b2 100%);
Every change updates the preview and the CSS instantly — no guessing.
Add up to 8 color stops and drag each one's position along the gradient.
Switch between directional linear blends and circular or elliptical radial glows.
Clean, unprefixed CSS that works in every modern browser.
A CSS gradient is a smooth transition between two or more colors, rendered by the browser as an image. Because it is generated rather than downloaded, a gradient background costs no extra HTTP request and scales perfectly to any size — which is why gradients replaced background images for most UI surfaces.
Linear: background: linear-gradient(135deg, #0f766e 0%, #0891b2 100%); — the angle sets the direction, then each color is paired with a position along that line.
Radial: background: radial-gradient(circle at center, #f9d423 0%, #ff4e50 100%); — colors radiate outward from a center point you choose.
In CSS, gradient angles point toward where the gradient ends. 0deg runs bottom to top, 90deg runs left to right, 180deg runs top to bottom, and 270deg runs right to left. The widely used 135deg creates the diagonal top-left to bottom-right blend seen across modern web design.
Gradients look best when the colors sit close together on the color wheel — wildly different hues tend to pass through a muddy grey in the middle. Keeping saturation and brightness roughly consistent across stops avoids visible banding. For text placed over a gradient, always check contrast against the lightest part of the gradient, not just the average.
To apply a gradient to text rather than a box, set the gradient as the element's background, then add background-clip: text, -webkit-background-clip: text, and color: transparent. The gradient then shows through the letterforms.
Choose linear or radial, pick your colors and their positions, adjust the angle, then copy the generated CSS and paste it as the background property of any element.
A linear gradient blends colors along a straight line in a direction you set with an angle. A radial gradient blends outward from a center point in a circle or ellipse, which is useful for spotlight and glow effects.
The angle sets the direction the gradient travels. 0deg goes bottom to top, 90deg goes left to right, 180deg goes top to bottom, and 270deg goes right to left. 135deg produces the popular diagonal top-left to bottom-right blend.
Yes. Unprefixed linear-gradient and radial-gradient are supported by every modern browser, including Chrome, Firefox, Safari and Edge. Vendor prefixes have not been necessary for many years.
Yes, by applying the gradient as a background and then clipping it to the text with background-clip: text and a transparent text color. This is a common technique for gradient headings.