You can change the text color using the color property. You can use color names, hexadecimal color codes, RGB, RGBA, HSL, or HSLA values.
/* / Examples */ p { color: blue; /* Color name */ } h1 { color: #ff0000; /* Hexadecimal code */ } h2 { color: rgb(255, 0, 0); /* RGB */ } h3 { color: rgba(255, 0, 0, 0.5); /* RGBA (with transparency) */ } h4 { color: hsl(0, 100%, 50%); /* HSL */ } h5 { color: hsla(0, 100%, 50%, 0.5); /* HSLA (with transparency) */ }