Hex Core JS
    Preparing search index...

    Function isRGBColorLight

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

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

      Reference: How to decide font color in white or black depending on background color?

      Parameters

      • red: number

        The red value of the color to check.

      • green: number

        The green value of the color to check.

      • blue: number

        The blue value of the color to check.

      Returns boolean