constrast function modified to use luma instead of lightness and default threshold changed to 43%
Add logit to contrast function to check for the actual dark and light colors, and swap if neccessary