Computer Science for IGCSE & O level - Data Representation (Section 11 - No. 11)

How many possible combinations of colours can be represented with HTML color codes using the hex format?
256
65,536
16,777,216
1024

Explanation

With 2 hex digits (00-FF) for each of the Red, Green, and Blue components (256 values each), the total possible color combinations are 256 * 256 * 256 = 16,777,216.

Comments (0)

Advertisement