turbodombuilder - v0.9.5
    Preparing search index...

    Function contrast

    • Parameters

      • Optionalcolor1: string

        The first color in Hex format

      • Optionalcolor2: string

        The second color in Hex format

      Returns number

      The contrast value, or NaN if one of the colors provided is not valid.

      Computes the contrast between two colors.