For just colours, use this:
<span style="color: red">This text is red</span>
For gradients, a little more complicated syntax is needed:
<span style="background: -webkit-linear-gradient(red, green, blue); -webkit-background-clip: text; -webkit-text-fill-color: transparent;">This text has a gradient of red, green, then blue</span>