Coding for Beginners: CSS Basics #54— Using Color on the Web—The Hexadecimal Color System

Maribel Gray on YouTubeWatch on YouTube

SaveMark complete

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

BeginnerDesign Engineering6 min

About this video

This beginner lesson explains the hexadecimal colour system used in CSS, where six digits give red, green and blue intensities. It walks through converting an RGB colour such as orange into a hex code and shows hex values in the background-color property. It is aimed at designers learning basic HTML and CSS.

What you’ll learn

  • Explain how a six-digit hex colour code encodes red, green and blue
  • Convert an RGB colour value into its hexadecimal equivalent
  • Apply hex colour codes to the background-color property in CSS