A gradient headline looks like the letters themselves are painted with a sunset. The effect is popular on landing pages and hero sections, and it is easy to assume you need a design program or an image export to get it. You do not. The whole effect is CSS, and it starts with a good gradient rather than a clever trick.
This guide uses the free Gradient Palette Explorer on Ovatly to find and copy a tasteful gradient, then applies the standard background-clip technique on top of it. One honesty note up front: the explorer supplies the gradient declaration only. Gradient text is a CSS step you add yourself, and this guide labels it that way throughout.
Contents
- Quick answer
- What the explorer gives you, and what it does not
- The background-clip technique, in plain terms
- How to make gradient text, step by step
- Worked example: Ember Sky as a headline
- Limitations and honest tradeoffs
- Common mistakes
- FAQs
- Conclusion
Quick answer
Open the Gradient Palette Explorer, browse the grid or filter by mood, and click Copy CSS on the gradient you want. Then style your headline with three declarations: the copied gradient as its background, background-clip: text (with the -webkit- prefixed form alongside it), and color: transparent. The letters become windows onto the gradient. Before you ship it, check the headline against the lightest and darkest stops of the blend, because the pale end is where gradient text quietly fails.
What the explorer gives you, and what it does not
The explorer is a small curated bank of two and three stop gradients, organized by mood: Warm, Cool, Nature, Vivid and Neutral. You can browse the grid, filter by the category chips, or search by mood, gradient name or a hex value. Every card carries a one-click Copy CSS button, and what it copies is a single background declaration.
That is the full extent of the tool, and it matters to be clear about it. The bank is a fixed curated set, not a generator, so the same gradients appear for every visitor. It does not build custom gradients from your own colors, and it does not produce gradient text. What it does well is the part people get wrong on their own: choosing a blend that is already balanced. Every gradient in the bank is linear, and the angle is part of each preset, included in the copied CSS.
So the division of labour is simple. The explorer answers "which gradient?" Your stylesheet answers "where does the gradient show?" A background panel is one answer. Clipped text is another.
The background-clip technique, in plain terms
Gradient text works by reversing what you expect. Normally a text color paints the letters and the background sits behind them. Here, the gradient is painted as the element's background, spread across the whole headline box. Then background-clip: text tells the browser to keep that background only where the letter shapes are, cutting the rest away. Finally, color: transparent makes the actual text fill see-through, so the clipped gradient shows through the letters instead of being covered by a solid color.
Miss any one of the three and the effect breaks predictably. Without the clip, you get a gradient panel with ordinary text on top. Without the transparent color, the solid text color hides the gradient completely and nothing looks different at all. The prefixed form, -webkit-background-clip: text, is still the version many browsers expect, so working stylesheets carry both lines.
This is plain CSS knowledge, not a feature of the explorer. The tool's job ends at the copied declaration; everything after that happens in your stylesheet.
How to make gradient text, step by step
- Open the Gradient Palette Explorer and find your gradient. Filter by the mood the page needs, or search by a hex value if the headline must sit near known brand colors.
- Click Copy CSS on the card. You now have a complete background declaration on your clipboard.
- Paste the declaration into the rule for your headline element, so the gradient becomes its background.
- Add the clip declarations under it:
-webkit-background-clip: text;andbackground-clip: text;. - Add
color: transparent;so the letter shapes reveal the clipped background. - Read the headline at its real size, on the real page background, and check both ends of the blend before you keep it.
Worked example: Ember Sky as a headline
The Ember Sky card copies this declaration:
background: linear-gradient(135deg, #FF9966, #FF5E62);
Applied to a header or a button, it blends from a soft orange at the top left to a coral red at the bottom right. To turn that same declaration into gradient text, the headline rule becomes:
h1 {
background: linear-gradient(135deg, #FF9966, #FF5E62);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
}
Nothing about the gradient changed. The stops are the same two colors, #FF9966 and #FF5E62, and the angle is the same 135deg, running diagonally from top left to bottom right. Only the clipping changed where the blend is visible: inside the letters.
Now the readability check, and this example shows why it matters. The first letters of the headline sit over the soft orange end, the lightest stop. The last letters sit over the coral red, the darkest stop. On a light page background, the orange end is the weak point: pale letters on a pale page. If that end reads poorly, the honest fixes are to choose a gradient with a darker lightest stop, to edit the angle so the dark end carries more of the text, or to keep the gradient for a panel and use a solid color for the headline. What never works is judging the headline by its middle, where the blend is mid-strength and everything looks fine.
Limitations and honest tradeoffs
The bank is finite on purpose. If none of the curated gradients fits, the explorer cannot invent one for you; building a gradient from your own colors is a different job, done by hand in CSS or with a gradient generator. All of the presets are linear, so radial gradient text is not something this workflow produces.
Clipped text also has real costs. The effect depends on background-clip support, which is why the prefixed line stays in the code. If the clip fails in some browser, transparent text can become invisible text, so test where your readers actually are. Gradient text is also a headline treatment, not a body text treatment: small text over a shifting blend is hard to read, and screen readers and text selection behave less predictably than with a plain solid color. Use it where the words are large, short and decorative by design.
Common mistakes
- Forgetting
color: transparent. The solid text color covers the gradient and the effect simply never appears. - Omitting the prefixed clip line. Some browsers need
-webkit-background-clip: text; without it, the clip may not apply. - Checking the middle of the blend. Readability is decided at the lightest and darkest stops. The middle always looks acceptable.
- Using gradient text for paragraphs. The technique suits short, large headlines. Body copy needs a single, steady, high-contrast color.
- Recoloring the stops by guessing. If a preset is close but not right, edit the angle first; it is part of the copied CSS and changes the feel without inventing a new blend.
FAQs
Does the Gradient Palette Explorer make gradient text for you? No. The explorer is a curated bank that supplies a gradient declaration when you click Copy CSS. Turning that declaration into gradient text is a separate CSS step: you apply the gradient as a background, clip the background to the text, and make the text fill transparent.
What CSS turns a gradient background into gradient text? Three declarations do the work: set the gradient as the element background, add background-clip: text (with the -webkit- prefixed form alongside it), and set color: transparent so the clipped background shows through the letter shapes instead of a solid text color covering it.
Why does part of my gradient headline look faint? Because the letters are not one color. Each part of the headline sits on a different part of the blend, so the end over the lightest stop can be hard to read even when the darker end looks strong. Check the text against the lightest and darkest stops, not just the middle of the gradient.
Can I change the direction of gradient text? Yes. Edit the angle inside the copied declaration. 90deg runs left to right, 180deg runs top to bottom, and 135deg runs diagonally from top left to bottom right. The angle is part of each preset and is included in the CSS the explorer copies.
Are the gradients in the bank free to use? Yes. The gradients are free to use, so you can copy a declaration into your own stylesheet and build on it, including using it as the background for clipped gradient text.
Conclusion
Gradient text is two honest halves: a good gradient, which the Gradient Palette Explorer supplies from its curated bank, and a small CSS technique, the background-clip steps, which you apply on top. Keep the halves separate in your mind and the effect stops being mysterious. When the graphic itself, rather than a web page headline, needs the gradient, our sibling guide on choosing a gradient for social media graphics covers the picking method in full. For more guides in this series, see our Color and Design Tools guides.