🎨 Color Gradient Generator

Create beautiful linear and radial gradients – custom colors, angle, position. Live preview & CSS code

Version 1.0.0 – Updated April 2025
?
Choose two colors for your gradient. Use the swap button to exchange them.
?
Direction of the gradient in degrees. 0° = top to bottom, 90° = left to right.

👁️ Live Preview

📋 CSS Code

background: linear-gradient(45deg, #667eea, #764ba2);

Embed This Tool

Want to embed this color gradient generator on your website? Use this code:

<iframe src="https://yoursite.com/color-gradient-generator" width="100%" height="600" frameborder="0"></iframe>

📘 CSS Gradient Examples

🌈 Sunset

background: linear-gradient(135deg, #ff6b6b, #feca57);

🌊 Ocean

background: linear-gradient(to right, #48c6ef, #6f86d6);

🌿 Forest

background: linear-gradient(45deg, #11998e, #38ef7d);

🔴 Radial Glow

background: radial-gradient(circle at center, #ff9a9e, #fad0c4);

🟣 Purple Haze

background: radial-gradient(ellipse at top left, #667eea, #764ba2);

⚫ Repeating (advanced)

background: repeating-linear-gradient(45deg, #fff, #ccc 10px);

📖 CSS Gradient Tutorials

📐

Understanding linear-gradient()

Angles, directions, color stops, and how to control them.

Read Tutorial →

Radial gradients: circles & ellipses

Shape, size, position – create sunbursts, spotlights, and more.

Read Tutorial →
🔄

Repeating gradients & patterns

How to make stripes, checks, and complex backgrounds.

Read Tutorial →

⚖️ Gradient Generator Comparison

Feature Our Tool Tool A Tool B
Free & unlimited ❌ (limit)
Live preview
Linear & radial
Custom angle (0-360)
Radial shape & position
Swap colors
Download CSS file
Client-side / private

❓ Frequently Asked Questions

What's the difference between linear and radial gradients?

Linear gradients transition colors along a straight line (direction/angle). Radial gradients transition colors outward from a central point (shape: circle/ellipse).

How do I add more than two colors?

This generator focuses on two‑color gradients for simplicity. You can easily add more color stops by editing the CSS: linear-gradient(45deg, #667eea, #764ba2, #ff6b6b).

What does the angle value mean?

0° = from bottom to top, 90° = from left to right, 180° = from top to bottom, 270° = from right to left. You can also use keywords like to top, to bottom right etc.

Can I use gradients as text color?

Yes! Use background: linear-gradient(...); -webkit-background-clip: text; -webkit-text-fill-color: transparent;. This generator outputs background gradients, but you can adapt the code.

📝 Version History

Version 1.0.0 – Initial release

April 7, 2025
  • 🚀 Full CSS gradient generator
  • 🎨 Two color pickers + swap button
  • 🔄 Linear & radial gradient support
  • 📐 Linear: angle slider (0-360°)
  • ⚪ Radial: shape (circle/ellipse) + 5 position options
  • 👁️ Live preview
  • 📋 Copy CSS & download .css file

🧠 Why use CSS Gradients?

Gradients add depth, dimension, and visual interest to backgrounds, buttons, cards, and text. They are fully scalable, resolution‑independent, and can reduce image requests – improving performance.

🎯 Visual hierarchy

Guide the user's eye with smooth color transitions.

⚡ Performance

Pure CSS – no image files, no HTTP requests.

🎨 Unlimited palette

Combine any colors, create custom themes instantly.

🛠️ Recommended Design Resources

Tools to take your gradients further