Hexadecimal colors | SoloLearn: Learn to code for FREE!

+4

Hexadecimal colors

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

12/5/2017 10:53:37 PM

Qwqwq Rt

6 Answers

New Answer

+5

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

+4

hello @dharmik

0

someone knows PHP?

0

-1

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