convert(color) {
    const rgb = getRGB(color);
    if (!window.matchMedia("(forced-colors: active)").matches) {
      return rgb;
    }

    for (const [name, RGB] of this._colors) {
      if (RGB.every((x, i) => x === rgb[i])) {
        return ColorManager._colorsMapping.get(name);
      }
    }
    return rgb;
  }
In High Contrast Mode, the color on the screen is not always the
real color used in the pdf.
For example in some cases white can appear to be black but when saving
we want to have white.
@param {string} color
@returns {Array<number>}