For generating the appropriate contrast text color against the current element's background color.