implemented a method to get the best text color for a given background color