title: Function that takes a hex-color and returns a named vector with the values of the RGB and possibly alpha channels
body: <p>For example, the function should work like this:</p>
  
  <pre><code># colors with no transparency
  hex_values("#435690")
  
  ## red  green  blue
  ## "43" "56"   "90"
  </code></pre>
  
  <p>If the provided hex-color has an alpha channel, then the function should work like this:</p>
  
  <pre><code># colors with transparency
  hex_values("#435690FF")
  
  ## red  green  blue  alpha
  ## "43" "56"   "90"  "FF"
  </code></pre>
  
  <p>I'm doing this with regex and for loops to write my function, but still running into many issues. </p>
  
  <p>Any advice/help is appreciated! </p>