Hexadecimal colors | SoloLearn: Learn to code for FREE!


Hexadecimal colors

Hexadecimal color #FFF is same as #FFFFFF. please explain it.

12/5/2017 10:53:37 PM

Qwqwq Rt

7 Answers

New Answer


It is just a shortened version. It's kind of like going through 0 - 100 by tens, but instead is going through 0 - 255 by 16's I believe. So for each color R, G, and B (#RGB) you only get 16 different values instead of all 256 for each color. It's usually used to define grey, white, and black because it's much faster and easier to type. White: #FFF Grey: #AAA, #666, #EEE, #333, etc. Black: #000


hello @dharmik


Stephirio false


someone knows PHP?



No, they aren't. I know that CSS use #FFF like code but in HTML you must use the second option.