getContrastColor({ contrastDarkColors, contrastLightColors, contrastStrongLightColors, contrastDefaultColor }, hue) {
    if (contrastDarkColors && contrastDarkColors.includes(hue)) {
      return CONTRASTS['dark-contrast-color'];
    } else if (contrastLightColors && contrastLightColors.includes(hue)) {
      return CONTRASTS['light-contrast-color'];
    } else if (contrastStrongLightColors && contrastStrongLightColors.includes(hue)) {
      return CONTRASTS['strong-light-contrast-color'];
    } else {
      return contrastDefaultColor;
    }
  }
This is essentially a port of the paper-contrast-color sass function.

@param {Palette} palette
@param {string} hue