Hello! So this is minimally image processing, but I didn't know what else to name this thread. I'm working on a project and basically, I have this image (see attached file) thats provided to me. That's all I have to work with. The first column of colored pads represents my test pad. The other colored pads represent the reference pads. For each pad in the first column, I need to look across that row via my PHP code and find the reference pad that is closest to it in color. I'm working with this in PHP. Does anyone have any clever solutions to this problem? Some of the stuff I've been doing thus far is trial and erroring my way to the center of one of the pads and taking it's RGB value and then finding my way to the middle of other colored squares and finding its RGB value and comparing to see which RGB value matches the best. Thanks ahead of time for the help.