Create beautiful CSS gradients visually with live preview and copy-ready code
You can also click any preset swatch to load a beautiful starting gradient, or hit "Randomize" to generate a random combination for inspiration.
CSS gradients let you display smooth transitions between two or more colors without using images. They are generated by the browser, which means they scale perfectly on any screen and load instantly.
A linear gradient transitions colors along a straight line. You define the direction (as an angle or keyword) and a set of color stops:
background: linear-gradient(90deg, #ff6b6b 0%, #feca57 100%);
The angle 90deg means the gradient goes from left to right. 0deg goes bottom to top, 180deg goes top to bottom. You can use keywords like to right, to bottom left, etc.
A radial gradient radiates outward from a center point. You can control the shape (circle or ellipse) and the position of the center:
background: radial-gradient(circle at center, #667eea 0%, #764ba2 100%);
If you omit the shape, the browser defaults to an ellipse that matches the element's aspect ratio. Specifying circle creates a perfectly round gradient regardless of the element's dimensions.
Each color stop defines a color and its position along the gradient line. Positions are specified as percentages from 0% (the start) to 100% (the end). You can add as many stops as you need:
background: linear-gradient(135deg, #f093fb 0%, #f5576c 50%, #4facfe 100%);
If you omit positions, the browser distributes colors evenly. Placing two stops at the same position creates a hard color boundary instead of a smooth transition.
Here are some popular gradient styles you can use in your projects:
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
background: linear-gradient(90deg, #f83600 0%, #f9d423 100%);
background: linear-gradient(120deg, #84fab0 0%, #8fd3f4 100%);
background: linear-gradient(to right, #0f0c29, #302b63, #24243e);
background: radial-gradient(circle at center, #ffecd2 0%, #fcb69f 100%);
CSS gradients are well supported across all modern browsers. The linear-gradient() and radial-gradient() functions work without vendor prefixes in all current browser versions. For maximum compatibility with older browsers, the generated code includes a -webkit- prefix.
| Browser | linear-gradient | radial-gradient | Version |
|---|---|---|---|
| Chrome | Yes | Yes | 26+ |
| Firefox | Yes | Yes | 16+ |
| Safari | Yes | Yes | 6.1+ |
| Edge | Yes | Yes | 12+ |
| Opera | Yes | Yes | 12.1+ |
| IE | Partial | Partial | 10+ (no repeating) |
With over 97% global browser support, you can use CSS gradients confidently in production. The tool generates both the standard syntax and the -webkit- prefixed version for legacy WebKit browsers.
background-image to a gradient, then applying -webkit-background-clip: text and -webkit-text-fill-color: transparent. This technique works in all modern browsers.