Gradient Generator, 2 & 3 Color CSS Gradients

Build a smooth 2- or 3-color CSS gradient, preview it live and copy the code. Linear gradients ready for any site.

—

How it works

Colors are placed at 135° in CSS linear-gradient order. Leave Color 3 blank for a classic two-color blend; add it for a three-stop gradient. The preview updates live and the CSS line below is ready to paste.

Examples

InputResult
#7c3aed → #06b6d4violet to cyan, a modern SaaS look
#f97316 → #db2777sunset orange to pink
#0ea5e9 → #f59e0b → #dc2626 via 3 colorssky to amber to red, three stops

Frequently Asked Questions

How do I use the code?

Copy the 'background:' line into your CSS for any element, buttons, hero sections, cards. It works in every modern browser.

What color format do I enter?

Six-digit hex, with or without the # sign (e.g. 7c3aed or #7c3aed). Invalid entries fall back to the defaults.

Can I change the angle?

The generated line uses 135°, a good default diagonal. Edit the number directly in the copied CSS, 90deg is left-to-right, 180deg is top-to-bottom.

Related Generators

Random Name GeneratorRandom Letter GeneratorRandom Color Generator (HEX)Random Nonsense Sentence GeneratorRandom Object GeneratorRandom Food GeneratorRandom Thing GeneratorRandom Movie GeneratorRandom Horror Movie GeneratorRandom Pokémon Type GeneratorRandom Pokémon Team Generator (Gen 1)Random Starter Pokémon GeneratorRandom Personality GeneratorRandom Famous Person Generator