# Colours in art packages are often given Hex codes as illustrated below with #00ccff. Why is Hex used in this way rather than the actual 24-bit colour value?

Computers and Technology

## Question

Colours in art packages are often given Hex codes as illustrated below with #00ccff. Why is Hex used in this way rather than the actual 24-bit colour value?

• ### 1. User Answers liemonder

There is no technical reason for using one or the other, a computer could easily handle both variants.
The reason for hex is that it is so much more intuitive and practical to use. It is quicker to write, because it requires fewer characters. With bits, you would be very likely to miss count at some point and also wouldn't notice typos, because who actually remembers all 24 characters. The length also makes it harder to read: where does the green channel start/where is the 9th character?
Additionally, hex numbers are closer to the typical decimal system, only adding 6 symbols, while with binary you remove 8 symbols, which makes it a bit more familiar and easier to learn.

• ### 2. User Answers codiepienagoya

24-bit color is the most common color depth, and it is supported by the majority of modern display systems and software. It has $$(28)^3 = 256^3 = 16,777,216 \ colours$$ in its kit that includes. 6-Hexa digits can represent 24-bit color.

• To duplicate an exact color, it is faster/shorter/less prone to error to re-enter a 6-character Hex value rather than a lengthy binary number.
• Instead of 24, the code takes up only 6 characters on the screen.
• Hex codes are easier for designers and software users to memorize than binary values.