yiq
Returns light when a color is dark and dark when a color is light (and a little more).
Returns light when a color is dark and dark when a color is light (and a little more).
A general-purpose color library for JavaScript
Determines the best contrast color to use. Give it a background color and it returns a foreground color (black or white by default but customizable).
Converts hex color to rgb and calculates appropriate corresponding foreground.
functions which help to work with RGB, HEX, YIQ, HSV colours
Determine if a color in RGB format is dark using YIQ calculation
Calculate the YIQ value of a color in RGB format
Color utilities for Node.js