contrast

Determine if the given hex color is light or dark. Helpful to determining foreground color against a background color.

// repository documentation