getHexCode(name) {
    const rgb = this._colors.get(name);
    if (!rgb) {
      return name;
    }
    return Util.makeHexColor(...rgb);
  }
An input element must have its color value as a hex string
and not as color name.
So this function converts a name into an hex string.
@param {string} name
@returns {string}