HEX color values in CSS
HEX colors always have a hash (#
) in front of them. Those 6 numbers and letters generally define a different way of representing RGB values. The first pair specifies the amount of red, the second stands for green, and the third refers to blue.
Take a note that web developers often use shorthands of HEX codes where both digits of the red, green, and blue values are the same, for example:
#000000
(black) — the short version is #000
.
#ff0000
(red) — the short version is #f00
.