This CSS tutorial shows how to apply colour to text, backgrounds and borders using named colours, HEX, RGB, RGBA and HSL. It explains when to use each format, how to add transparency with RGBA, and how the 60-30-10 rule supports balanced colour in web design.
What you’ll learn
✓Apply named, HEX, RGB, RGBA and HSL colours to text, backgrounds and borders