Does anyone know if there exists either an algorithm for (or an implementation of) a system that would, given a full website (with HTML, CSS, images, etc), determine the “primary color palette”?
By “primary color palette”, I mean that if a human designer were asked to come up with the “most prominent colors” in the site’s design they would be able to write down the top 4 or 5 colors.
I imagine it would be implemented by using a rendering engine like webkit (or perhaps a full browser instance) to render the given assets correctly, then perhaps “screen capture” the results and do some sort of pixel-color + area analysis. Or perhaps there would be some smarter way to analyze things with CSS?
The use case for something like this would potentially be for folks like [getsatisfaction.com] that use Javascript to inject elements into the page. They could potentially style these elements ahead of time so they fit in with the page better.
Thanks!
This site will take a URL and output the color scheme.
Color Combos