title: Convert RGB Value to UIColor?
body: <p>Given a huge list of RGB values, I would like to associate and pair them to a standard UIColor. For example, (255,0,0) is the "common" Red color. I would like to pair and label values like (254,85,44) and (193,0,1) as "Red" as well. As long as they are close to a shade of red I would like to say it is "red". What would be the best way to accomplish this? I tried testing for luminance and even comparing it to the standard (255,0,0) for a generic formula but was unsuccessful. Any suggestions?</p>