This is a WebKit only,but is the cleanest way to accomplish it as the text remains editable and selectable web text.
Write below CSS code for h1 font:- h1
{
font-size: 72px;
background: -webkit-linear-gradient(#eee, #333);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}