I have a need to compare a color from an image to an array of other colors and determine which of the other colors it is most perceptually similar to.
I do not know a lot about color theory. I understand that L*a*b* is the colorspace that is most commonly used to compare colors, perhaps using the deltaE metric, but I also believe that this colorspace is not supported in iOS.
I know how to get the colors in HSV or RGB but I don't know if they can be converted into a L*a*b* colorspace programmatically or if there is a way to brute force compare the colors in one of the other colorspaces that is supported by iOS.
Any help would be truly appreciated.