For Example
Writing red
is more efficient than #cc0000
. It's less characters, less space, and easier to remember.
Should we always prefer color code over names?
In multi-developer environment.
Edit:
Over the last few years, all of the major browsers have included support for a special set of 140 colors that are recognized by their color name within HTML or CSS code.
This means that rather than having to remember that the color orange is specified with the hex code “#FFA500″, you can simply type the word “orange” when specifying a color in your code and the browser will automatically translate it to its hex code.
refrence - http://www.colorschemer.com/blog/2007/07/24/140-named-colors/