CSS Gradient Text Generator
Make gradient-filled text with background-clip: text, the -webkit- prefixes and a solid-color fallback inside @supports. Live preview and copy-ready CSS + HTML.
Gradient text is made by painting a gradient as the element's background, clipping that background to the shape of the letters with background-clip: text, and making the text color transparent so the gradient shows through. This generator writes that rule with the -webkit- prefixes some browsers still need, wraps it in @supports so browsers without support fall back to a solid color, and renders the result in your own browser.
How to use this tool
- Type the text and choose two to eight gradient colors (one per line, optional positions).
- Set the angle, font size, weight and font.
- Keep "fit to text width" so short headings show the whole gradient.
- Copy the CSS and HTML; check the fallback color's contrast.
Formula
background-image: linear-gradient(<angle>, <colors>); background-clip: text; -webkit-text-fill-color: transparent;
The gradient is sized to the element box, so on a full-width heading only part of it lies behind the letters — display: inline-block shrinks the box to the text. The fallback color is the first gradient color unless you choose another.
Example
The defaults produce a coral-to-peach heading: linear-gradient(90deg, #ff7e5f, #feb47b) clipped to 64 px, weight-800 text, with color: #ff7e5f as the fallback outside @supports. That fallback reaches only 2.49:1 on white, below even the 3:1 WCAG asks for large text, so choose darker colors when the heading carries meaning.
Frequently asked questions
Why is my gradient text invisible?
Usually the text color was made transparent but the background clip did not apply — for example a missing -webkit-background-clip in older Safari, or a background shorthand written after background-clip that resets it. Putting the transparent color inside @supports, as here, keeps the text visible.
Does gradient text hurt accessibility?
Screen readers read it normally. The risk is contrast: light gradient colors can fall below WCAG minimums, so check the lightest color against the background, and prefer gradient text for large headings.
Can I animate the gradient?
Yes: make background-size larger than the element (for example 200% auto) and animate background-position. The clip follows automatically.
Sources
Last updated:
Page address with these inputs: https://kakao.mobile/tools/css-gradient-text-tool/
Cite or embed this tool
kakaoCalc. (2026, November 8). CSS Gradient Text Generator. https://kakao.mobile/tools/css-gradient-text-tool/
“CSS Gradient Text Generator.” kakaoCalc, 8 Nov. 2026, kakao.mobile/tools/css-gradient-text-tool/.
Paste this code into your page. The widget runs in your visitors' browsers, shows no ads and keeps a link back to this page. Embedding terms