Add your input
Two colors and a gradient angle.
Preview the result and copy production-ready CSS.
background: linear-gradient(135deg, #06B6D4, #8B5CF6);Your work stays private in your browser while you use this tool.
Create a two-color CSS linear or circular radial gradient, preview it, swap the endpoint colors, and copy a complete background declaration.
Two colors and a gradient angle.
Preview the result and copy production-ready CSS.
A CSS linear-gradient declaration.
A small hue shift and uneven stop positions often feel more natural than a perfectly even blend.
Build a hero or card background from two known design-token colors.
Test how reversing gradient endpoints changes visual direction.
Choose a linear angle interactively before pasting the declaration into CSS.
For a linear gradient, the page serializes the selected angle and two HEX color stops into linear-gradient(). Radial mode emits radial-gradient(circle, start, end) and intentionally omits the angle because it does not apply to that form.
Yes. CSS gradient generator is free to use.
Yes. Your work stays private while you use the tool — nothing you enter is uploaded.
The generated radial form expands from a circle rather than along a directional line, so this implementation has no angle to serialize.
Not in this version. Both stops use the browser's default endpoint placement. Add percentages manually after copying the CSS if you need custom positions.