Color properties in CSS can accept color names ( white, pink, etc) or hexadecimal values ( #FFF , #669966 , etc) or RGB.
But not all the color names are standard for all browsers. There are tests like CSS color names vs hex codes, (my results is better hexadecimal) , so is it always better to use hexadecimal than other two options?
Edit: Other duplicate questions is about personal preferences, this is about performance.
Putting away the color names, the hex values and RGB are pretty much the same.
But the result shows that Hex codes are slightly faster (not that much to worry about).
For example, Firefox 11 does 15,400 operations of hex code but 14,900 of rgb in a second.
So, that is not much to worry about. You won't even notice that.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With