Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Web colors hexadecimal notation

Usually colors in hexadecimal notation are presented with a hashtag following 6 hexadecimal characters. What color does the value #AAA produce? Are the other characters derived from the existing ones? Are the missing values just assumed?

like image 855
Arctic Conductor Avatar asked Jan 11 '23 09:01

Arctic Conductor


1 Answers

#AAA is interpreted as #AAAAAA

When you have 3-hexadecimal colour, the browser is assuming that every single char (or number) gets doubled (so e.g. #ABC is equivalent to #AABBCC)

like image 114
Fabrizio Calderan Avatar answered Jan 12 '23 21:01

Fabrizio Calderan