Function adaptTextColorToBgColor

  • Adapts the text color for a given background color

    Parameters

    • bgColor: string

      as #ff0000

    Returns string

    returns black or white for best contrast