Color hex code

What is color hex code?
A colored hexadecimal code is one way of specifying colors with hexadecimal values. The code itself is a hex triplet that represents three separate values that indicate the levels of component colors. The code starts with a number sign (#) and is followed by six hexadecimal values or three hexadecimal value pairs (e.g. # AFD645). The code is generally linked to HTML and websites and displayed on a screen. Therefore the hexadecimal value pairs refer to the RGB color space.

A color hex code describes the composition of a certain color in a certain color space, usually RGB. In the case of RGB, the first pair of values refers to red, the second to green and the third to blue with decimal values from 0 to 255 or in hexadecimal 0 to FF (#RRGGBB). RGB is an additive color space, which means that when all three colors are put together, the result is white (white light). For example, the color hex code for white is #FFFFFF or in decimal 255, 255, 255; and on the opposite end, black is # 000000. Yellow is made up of red and green, so the hex code is # FFFF00. Other color spaces that use hex codes are:

- Hunters laboratory
- CIE laboratory

The codes can also be represented in a three-digit code to represent duplicate values in CSS. For example, #FFFFFF can be abbreviated as #FFF and # 00AA55 can be abbreviated as # 0A5. This is defined in the CSS specifications. Therefore it only works under the day '