CSS Colors Explained: Named, HEX, RGB, RGBA & HSL (Beginner to Pro Guide)

VirtualAddiction on YouTubeWatch on YouTube

SaveMark complete

Sign in to save videos and track what you’ve finished.

BeginnerWeb Development18 min

About this video

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
  • Add transparency to elements with RGBA values
  • Adjust colour tints and shades using HSL