Can someone tell me the best way to determine the 5-6 most used colors in a website ( not an image ) using PHP and/or javascript. I've searched through the net, but all I could find was some third-party solutions ( which don't suit my needs ), and such that extract the color from an image.
I'll be grateful if you can help in any way.