code: function generateColorByName(str) {
      var hue = 0;
      for (var i = 0; i < str.length; i++) {
          hue = (hue * PRIME + str.charCodeAt(i)) % MASK;
      }
      hue = Math.floor(hue * PRIME) % MASK / MASK;
      var rgb = hslToRgb(hue, SATURATION, LIGHTNESS);
      return ('#' + rgb[0].toString(16) + rgb[1].toString(16) + rgb[2].toString(16)).toUpperCase();
  }
docs: Generate an RGB value from a string
  
  @param {string} str
  
  @return {string} - RGB value