I just wanted to know if it's faster to use hex color codes or the color names when I want to use it in CSS?
My guess is the codes will be faster since the names are probably assigned to a look-up table and reference hex codes anyway.
That being said, my guess is the speed difference will be completely negligible.
Here's a performance test I just created. They're neck and neck, though hex codes seems to be just barely faster on 4/5 runs so far: http://jsperf.com/css-color-names-vs-hex-codes
1.4m articles
1.4m replys
5 comments
57.0k users