Function isColorLight

  • Check if hex color is light

    Parameters

    • hex: string

    Returns boolean

    Example

    // returns true
    isColorLight('#FFFFFF');
    // returns false
    isColorLight('#000000');