CSS Gradient Generator

Visually create beautiful CSS linear gradients and get instant code.

#A78BFA
#8B5CF6
135°
CSS Snippet
background: linear-gradient(135deg, #a78bfa, #8b5cf6);
background: -webkit-linear-gradient(135deg, #a78bfa, #8b5cf6);

Designer Tips

  • Use contrasting hues for a vibrant, modern UI effect.
  • Linear gradients work best for large landing page sections.
  • Webkit prefixes ensure older mobile browsers stay compatible.

Mastering CSS Gradients

Linear vs. Radial

Linear gradients follow a straight path along an axis (set by degrees or keywords like 'to right'). Radial gradients emerge from a central point, radiating outwards in a circular or elliptical fashion.

SEO & Performance

Using CSS for backgrounds instead of image files reduces your page weight significantly. This improves Core Web Vitals and mobile page speed, which are critical ranking factors for Google.