UIImageAverageColor See description on stackoverflow in this answer. The code in this project is in the public domain. Use it at your will.