Hex Core JS
    Preparing search index...

    Function isHexColorLight

    • Determines if the given hexadecimal color is light or not.

      Useful for determining if a dark or light text color should be used over a given background color.

      Parameters

      • color: string

        The color to check. Must be in hexadecimal format (leading pound symbol optional) and opacity is ignored. Can use 3, 4, 6, or 8 hexadigit notation, but opacity is ignored.

      Returns boolean