The inconsistencies in your site's color palette
coderwall.com
coderwall.com
It would be interesting to take this script and make it so that it does some kind of clustering, or looks at different components of the color—for example, you could just count the hues. One might expect to see a lot variation in lightness, but relatively little in hue, for example. On the other hand, maybe it's not that scientific, and designers just grab a color picker and fiddle until it looks right.
You ought to choose a palette that is as small as possible while remaining versatile. Each entry should serve a distinct purpose, and should look different (and look good) next to various other entries.
For example: a mid-saturation, mid-lightness violet, say around #793D58, can be used as (1) a dark background for light elements, (2) a text or link colour on a light background, or (3) a shadow for bluish or reddish elements. Knowing how colours are perceived, and how to use them well, drastically reduces the size of a palette—the vast majority of pixel art uses fewer than 20 colours, and fewer than 10 is common.
In particular, there is usually no need to create ad-hoc colours for different contexts, such as with LESS colour transformations. These can be useful tools, but they can also create inconsistency because they take control out of your hands. And when it comes to design, I for one prefer not to leave things to chance.
Agree that if you've got well defined color variables setup the preprocessor route is potentially simpler.
It would still look like a solid color + gloss, caustics and shadow, so from a design point of view it might be fair to treat each gradient as one "color".
I wonder if there's some sort of anomaly or bug causing the number to be so high... perhaps they use far less images, and instead use CSS instead? Maybe they have a CSS-based color-picker somewhere in their source?
I can sleep now!
EDIT: Nevermind, false alarm. Forgot about the syntax.css file for pygments.
Coderwall also deliberately has a slightly different color palette for each area of the site so it's not a big surprise to see our colors quickly stack up to the 44 colors the article mentions.
It might be a little excessive to have >100 colors like some of the sites mentioned.
Another reason are JPEGs. You get a mockup as JPEG and you use color values from that image.
I recommend to put a list of colors at the top of your primary style sheet. That's where others will look for it.
Using this analysis it would appear that we're all over the place. But in reality there are subtle changes using lighten and darken in sass to address what notJim is talking about in his comment -- "perception of color varies on size, background color, surrounding colors".
You can use, http://cutycapt.sourceforge.net/ to render the site into png, and analyze the pixels from it.
Good job.
so actually this software it's just to extract color palette from CSS files