title: What is the most efficient way to parse a CSS color in JavaScript?
body: <p>Given a string of a valid CSS color value:</p>
  
  <ul>
  <li>#fff</li>
  <li>#ffffff</li>
  <li>white</li>
  <li>rgb(255, 255, 255)</li>
  </ul>
  
  <p>Need to get an array of numbers of the following format: [R, G, B]</p>
  
  <p>What is the most efficient way of doing this in JavaScript (assuming a major browser)?</p>