A jQuery plugin that determines whether text should be black or white depending on the background colour.
To install via NPM run:
npm install luminosity
To install via Bower run:
bower install luminosity
To use, simply pass in a valid HEX colour string.
For example:
$().('#FF0000');
This HEX colour (red) will return '#fff'
For a working example, please visit my demo page.