Gradient Generator
A CSS gradient blends two or more colors smoothly. Write it as linear-gradient(135deg, #FF512F, #DD2476) and the browser paints the blend for you — no image file needed.
Build a CSS gradient in seconds: linear, radial, or conic, 2–5 color stops, angle control, live preview, and 22 presets. Copy the CSS in one click.
Presets — click to load
How CSS gradients work
A gradient is a smooth blend between two or more colors. In CSS you write background: linear-gradient(135deg, #FF512F, #DD2476); — the angle sets the direction (135deg runs from top-left to bottom-right), and each color stop sets a color and where it sits along the blend. Add a middle stop for a three-color blend, or change the type to radial-gradient for a blend that radiates from a center point, or conic-gradient for a blend that sweeps around a circle (handy for pie charts and color wheels).
Gradients are pure CSS, so they scale to any screen, cost no image download, and can be layered over photos with transparency. Use them for hero backgrounds, buttons, and cards — but keep text readable by checking the result in the contrast checker.
Frequently asked questions
What is the CSS for a linear gradient?
background: linear-gradient(135deg, #FF512F, #DD2476); — the angle sets the direction and the colors are the stops.
What is the difference between linear, radial, and conic gradients?
Linear blends along a straight line, radial blends outward from a center point, and conic blends around a circle.
Can I use a gradient as a background image?
Yes. In CSS, gradients are background images, so you can layer them with url() images and use background-size and background-position on them.
Related tools
Color Picker · Palette Generator · Color Mixer · Random Color Generator