code: function colorCodeToShorterNames(string) {
    Object.keys(shorterNames).forEach(function(key, i) {
      if (shorterNames[key].test(string)) {
        string = string.replace(shorterNames[key], key);
      }
    });
  
    return string;
  }
docs: `#` gets converted to `%23`, so quite a few CSS named colors are shorter than their equivalent URL-encoded hex codes.