Possible Duplicate:
Check if UIColor is dark or bright?
Is there simple way to determine if a UIColor is dark or light? I'd like to put a label on a dynamic background and change its text color to white if the background's dark or to black if its a light color.