Add logit to contrast function to check for the actual dark and light colors, and swap if neccessary