determines if new bg color is "dark" or "bright" text and buttons invert color when bg color is too bright