In CSS we can use several different methods to define a color:
red
#FF0000
I too was curious about this (it's a Friday afternoon). Here's a JSPerf for the various CSS colour methods:
http://jsperf.com/css-color-names-vs-hex-codes/18