title: Javascript function to convert color names to hex codes
body: <p>Is there a built-in function that would convert a color by name into its hex representation?
  Like I want to pass 'white' and receive '#FFFFFF'. I really want to avoid coding all hundred if's myself :)</p>