Generalize findContrastColor() to work for dark backgrounds

Previously it assumed the background was lighter than the foreground.

Bug: 62380473
Change-Id: Icd53750a2f9181890c8b9c62721d07946e115e99
2 files changed