color-is-dark

Returns whether the given rgb color array has a YIQ brightness value of less than 128 (50% brightness).

Browse on unpkg