title: Algorithm: Create color from string
body: <p>I want to create a color from a given string. The string does not have to be related to the resulting color in any form, but the same string should always result in the same color.</p>
  
  <p>This question is not bound to a specific programming language, so the "Color" should be in a language-independent format like RGB.</p>
  
  <p>It would be good if the algorithm creates colors in a wide colorspectrum and not just greyish colors.</p>
  
  <p>Perfectly would be something like this (C++):</p>
  
  <pre><code>#include &lt;string&gt;
  
  int getRedFromString( std::string givenString )
  { /*Your code here...*/ }
  
  int getGreenFromString( std::string givenString )
  { /*Your code here...*/ }
  
  int getBlueFromString( std::string givenString )
  { /*Your code here...*/ }
  
  int main()
  {
      std::string colorString = "FooBar";
      int R = getRedFromString  ( colorString );
      int G = getGreenFromString( colorString );
      int B = getBlueFromString ( colorString );
  }
  </code></pre>