Hexadecimal color code uses a set of 6 characters and numbers. Whereas RGB uses 3 sets of 3 numbers with a range of 0-255.