A gradient text generator creates the multi-color text effect popular on landing pages — text colored with a gradient instead of a single color. The trick is CSS background-clip: text, which clips a gradient background to the shape of letters.
This guide covers the recipe, multi-stop gradients, and how to keep gradient text accessible.
Generate Gradient Text — Free
Vibrant gradient headlines with live preview. Copy CSS instantly.
The Gradient Text Recipe
.gradient-text {
background: linear-gradient(45deg, #ff6b6b, #feca57, #48dbfb);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
}
Three lines:
- background — Any gradient (linear, radial, conic).
- background-clip: text — Clips background to text shape.
- color: transparent — Lets the clipped background show through.
Gradient Types
Linear (most common)
linear-gradient(90deg, #6a11cb, #2575fc);
Radial
radial-gradient(circle, #ff6b6b, #6a11cb);
Conic (sweeps around a point)
conic-gradient(from 45deg, #ff6b6b, #feca57, #48dbfb, #ff6b6b);
Multi-stop
linear-gradient(90deg, #ff6b6b 0%, #feca57 50%, #48dbfb 100%);Popular Color Combos
| Vibe | Colors |
|---|---|
| Sunset | #ff6b6b → #feca57 → #ff9ff3 |
| Ocean | #48dbfb → #2575fc → #6a11cb |
| Forest | #10ac84 → #1dd1a1 → #5f27cd |
| Stripe-style | #a855f7 → #ec4899 |
| Vercel-style | #7928ca → #ff0080 |
| Linear-style | #5e60ce → #6930c3 → #5390d9 |
Animating the Gradient
.animated-gradient {
background: linear-gradient(90deg, #ff6b6b, #feca57, #48dbfb, #ff6b6b);
background-size: 200% 100%;
-webkit-background-clip: text;
background-clip: text;
color: transparent;
animation: shift 3s linear infinite;
}
@keyframes shift {
0% { background-position: 0% 50%; }
100% { background-position: 200% 50%; }
}
Make the background wider than the element and animate background-position for a flowing color effect.
Accessibility
- Gradient text often fails contrast checks — use bold weights to compensate.
- Provide a solid color fallback:
color: #6a11cb;before the clip rules. - Avoid for body copy; reserve for hero headlines.
- Test in dark mode — gradients that pop on white may disappear on black.
How to Use the Tool (Step by Step)
- 1
Pick Gradient Type
Linear, radial, or conic.
- 2
Choose Colors
Pick 2-4 colors with good contrast.
- 3
Set Direction
Angle for linear gradients.
- 4
Live Preview
See the effect on sample text.
- 5
Copy CSS
Paste into your stylesheet.
Frequently Asked Questions
Why is my gradient text invisible?+−
You need both background-clip: text AND color: transparent. Missing either makes it disappear.
Does it work in all browsers?+−
Yes, in all modern browsers. Use both -webkit-background-clip and background-clip for maximum compatibility.
Can I use gradients on body text?+−
Technically yes, but it hurts readability. Stick to headlines and hero copy.
Why does my gradient text not show in Edge?+−
Older Edge versions need the -webkit- prefix. Modern Edge supports both.
Can I use an image instead of a gradient?+−
Yes — use background: url(image.jpg) with the same clip technique. Picture-fill text effect.
Generate Gradient Text — Free
Vibrant gradient headlines with live preview. Copy CSS instantly.
Open Gradient Text Generator ->Related Guides
CSS Gradient Text Generator Guide
How to create gradient text with CSS — background-clip technique, browser support, and accessibility considerations.
CSS Text Effects Generator
From text shadows to neon glows, gradient text to animated effects — copy-ready CSS for every use case
CSS Gradient Generator
Generate linear, radial, and conic CSS gradients visually — copy the code and use it instantly in your projects.