HTML & CSS for Beginners Part 19: Colors with CSS - hex, rgba, and hsla

Kevin Powell on YouTubeWatch on YouTube

SaveMark complete

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

BeginnerUI13 min

About this video

A beginner-level lesson in the HTML and CSS series explaining how to specify colours in CSS using hex, rgb, hsl and transparency through rgba and hsla. It suits people learning to style web pages.

What you’ll learn

  • Specify colours in CSS using hex codes
  • Add transparency to colours with rgba and hsla
  • Compare hex, rgb and hsl colour formats