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