Der Code:
<style>
.rot
{color: red;}
.hexfarbe
{color: #1E90FF; /* HEX */}
.hslfarbe
{color: hsl(120, 70%, 40%); /* HSL */}
.rgbafarbe
{color: rgba(255, 165, 0, 0.8); /* RGBA */}
.lila
{color:purple;}
</style>
<p class="rot">Mein Text hat nun die Farbe Rot</p>
<p class="hexfarbe">Mein Text hat nun die Farbe Blau (#1E90FF)</p>
<p class="hslfarbe">Mein Text hat nun die Farbe Grün (HSL)</p>
<p class="rgbafarbe">Mein Text hat nun die Farbe Orange (RGBA)</p>
<p class="lila">Mein Text hat nun die Farbe Lila</p>