Hi, If you want you can contact me. I created a powerful algorithm to detect dominant colors in an image using K-means clustering and lab color space.
Examples: https://twitter.com/kamy22/status/479040852028051456 https://twitter.com/kamy22/status/472517258418606080
Have a good day!