title: Create a hexadecimal colour based on a string with JavaScript
body: <p>I want to create a function that will accept any old string (will usually be a single word) and from that <em>somehow</em> generate a hexadecimal value between <code>#000000</code> and <code>#FFFFFF</code>, so I can use it as a colour for a HTML element. </p>
  
  <p>Maybe even a shorthand hex value (e.g: <code>#FFF</code>) if that's less complicated. In fact, a colour from a 'web-safe' palette would be ideal.</p>