Colors
CSS gradient code can be tricky to write by hand — this CSS gradient generator produces ready-to-paste linear, radial, and conic gradient code with beautiful random color combinations. Choose from warm, cool, sunset, ocean, and forest moods to quickly find gradients that fit your project's aesthetic. Perfect for hero section backgrounds, button hover states, card backgrounds, and any place where a flat color feels too plain. Just copy and paste the output directly into your stylesheet.
Copy the generated CSS line and paste it into your element's style block or CSS class. It works in all modern browsers.
Linear gradients transition along a straight line. Radial spreads from a center point. Conic sweeps around a center angle.
Yes — increase the Color Stops input to add more colors. You can also manually add percentage positions in the CSS output.
Linear and radial gradients are supported in all modern browsers. Conic gradients are supported in Chrome, Firefox, Safari 12.1+, and Edge.