Colors
4.3
Lesson

HEX Color Values

HEX color value is a mix of Red, Green, Blue color values. The colour code uses the hexadecimal number range from 00 to ff to represent the different intensities.

Look at the code given below:

The Hexadecimal syntax is #rrggbb, with red, green and blue colour intensities.

In the example given above, #ffa500 is the colour for the h1 element’s text. Here, ff represents the intensity of red, a5 represents green intensity and 00 is the intensity for blue colour. Together, these give us the orange colour.