CSS Gradient Generator
Choose a gradient type and colors to create CSS for a web background. Use two or three colors, with a configurable middle stop in three-color mode. Review the live preview and press Run to generate background-color and background-image declarations.
Key features
- Linear, centered circular radial and conic gradients
- Two or three colors with an adjustable middle stop
- Linear direction or conic starting angle from -360 to 360 degrees
- First color included as a solid background fallback
How to use
- Choose the gradient type and number of colors.
- Set the first and last colors, plus a middle color and position when using three colors.
- Adjust the linear or conic angle, check the preview and press Run to copy the CSS.
Use cases
- Create backgrounds for a hero section or banner
- Compare two-color combinations for cards and buttons
- Explore brand palettes by moving the middle color stop
Frequently asked questions
How do the gradient types differ?
Linear gradients change color along a line. Radial gradients extend outward from a circle at the center. Conic gradients change color around the center. The radial and conic centers are fixed in this tool.
Why does the middle color have no effect?
Choose three colors to apply the middle color and position. Two-color mode keeps these settings but does not include them in the output.
Does the angle apply to a radial gradient?
No. This tool uses a centered circular radial gradient, which does not use an angle. The angle controls linear direction or the starting direction of a conic gradient.
Can I use transparency or more colors?
The tool uses two or three opaque six-digit HEX colors. You can edit the generated CSS to add transparency, repeating patterns or additional stops.
Privacy
Colors and CSS are processed in your browser. Settings and generated CSS are not sent to a conversion server or automatically saved.
Comments & questions