Function calculateBestTextColor

  • Determines what the best text color is (black or white) based con the contrast with the background

    Parameters

    • hexColor: string

      Last selected color by the user

    Returns "#000000" | "#FFFFFF"