Simplify luminance / text-color code