Hexadecimal values, is it Worth it? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 6

Hexadecimal values, is it Worth it?

how do you feel about expressing HTML colors in hexadecimal values...

19th Apr 2017, 7:59 PM
Worlasiag
Worlasiag - avatar
5 Answers
+ 5
would you rather remember all the color names? what if you'd like to have a light blueish color? you'd have to search for its name... the other possibility would be rgb notation. in css you'd have to surround it by rgb(...) hex saves space. especially if all three components would have the same digits each, like white would be #fff instead of #ffffff. you can even write #369 instead of #336699 for a dark blue color. personally I only use rgb when it comes to transparency: rgba. for all other colors I prefer hex. and I'm freaking out constantly when I can't use it, like in word or excel for example.
19th Apr 2017, 8:27 PM
Mario L.
Mario L. - avatar
+ 4
keeping all this figures in mind can be quite tricky... but hexadecimal values are not so bad..
19th Apr 2017, 8:04 PM
Worlasiag
Worlasiag - avatar
+ 3
This question seems incomplete. Is Hexadecimal worth it? Well what are we comparing it to? Is this about notation, rendering speed, compatibility??? Does hex have a place in code, sure it does. It may not support transparency like rgba(). This in itself is not an issue as most colours on the web are opaque. If you need transparency, use rgba(). Mix and match.
20th Apr 2017, 1:17 PM
Murray Chapman
Murray Chapman - avatar
+ 2
worth, because 256 can write in ff
19th Apr 2017, 8:01 PM
黃冠融
黃冠融 - avatar
+ 1
I think this webpage defined the hex system usage well, The hexadecimal system is commonly used by programmers to describe locations in memory because it can represent every byte (i.e., eight bits) as two consecutive hexadecimal digits instead of the eight digits that would be required by binary (i.e., base 2) numbers and the three digits that would be required with decimal numbers. In addition, it is much easier for humans to read hexadecimal numbers than binary numbers, and it is not much more difficult for computer professionals to read hexadecimal numbers than decimal numbers. resources: http://www.linfo.org/hexadecimal.html
19th Apr 2017, 8:08 PM
黃冠融
黃冠融 - avatar