@dragonspark/chroma-kit
    Preparing search index...

    Type Alias ContrastAlgorithm

    ContrastAlgorithm:
        | "APCA"
        | "DeltaL*"
        | "DeltaPhi*"
        | "Michelson"
        | "WCAG21"
        | "Weber"

    Supported contrast calculation algorithms.

    Each algorithm has different characteristics, use cases, and output ranges:

    • 'APCA': Modern algorithm designed for text readability, outputs -108% to 106%
    • 'DeltaL*': Simple lightness difference used in Material Design, outputs 0-100
    • 'DeltaPhi*': Extended lightness difference that includes chroma, outputs 0-100+
    • 'Michelson': Classic formula for optical contrast, outputs 0-1
    • 'WCAG21': Web accessibility standard, outputs 1:1 to 21:1
    • 'Weber': Classic psychophysical contrast formula, outputs 0 to ∞