-webkit-text-fill-color

Sets the color for the inside of text characters. It's almost always used alongside 'background-clip: text' and a transparent 'color' to create text with image backgrounds or gradients.

Quick example

h1 {
  background: linear-gradient(to right, #7c3aed, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 3rem;
}

Quick facts

Initial value
currentcolor
Inherited
Yes
Applies to
all elements
Animation type
color

-webkit-text-fill-color Browser Support

Widely available Since 2017 96% global usage

This feature is well established and works across many devices and browser versions. It has been available across browsers since 2017.

Safe to use without fallbacks.

1+
49+
3+
12+
ESC