Lesson 005

Hexadecimal Number System

Base-16 · Hex Digits · Color Codes

1:00

How base-16 hex notation works, why it is the perfect shorthand for binary, and where you will encounter it in real programs and hardware.

By the end, you can

  • List the sixteen hex digits and give the decimal value of each letter digit (A–F).
  • Explain why one hex digit corresponds to exactly four binary bits.
  • Convert a hex number to decimal by multiplying each digit by its power-of-16 place value.
  • Convert a decimal value to its hex representation for single- and two-digit results.
  • Decode a web color code such as #FF0000 into its red, green, and blue channel values.
  • Recognize the `0x` prefix and avoid confusing `0x10` (16) with decimal 10.
  • Describe what happens when counting past `0xFF` in a single byte (wrap to 0x00 with carry).
Up next in Binary & Data Representation
Questions or feedback?