automatically choose button color based on contrast
clear unneeded color definitions