getRGBColor = color => {
    if (color.startsWith("rgba")) {
      return RGBAToRGB(color);
    }
    if (color.startsWith("rgb")) {
      return RGBStringToRGBObject(color);
    }
    // HEX
    if (color.indexOf("#") === 0) {
      // Shorthand Syntax
      if (color.length === 4) {
        color = `${color[1]}${color[1]}${color[2]}${color[2]}${color[3]}${color[3]}`;
      } else {
        color = color.slice(1, color.length);
      }
    }
    // Css Color
    if (color in CSSColors) {
      color = CSSColors[color];
    }
    return HEXToRGB(color);
  }
Map of CSS colors to hex representation