Usable Color Palette Algorithm

15 Nov 2010 - 11:04am
5 years ago
3 replies
3685 reads

Hi all, 

Does anyone have experience creating a usable color palette pro grammatically?   I have to create a color palette in RGB that must be easily discrimnable and avoids highly saturated colors.  I was thinking along the lines of selecting random RGB values, but restricting certain combinations of values.  Any ideas ?




15 Nov 2010 - 11:31am
Chris English

Try or Both have the ability to generate color palettes, or even search for existing palettes that use your particular RGB formula.

15 Nov 2010 - 12:17pm

Unfortunately, Kuler and other sites don't help you much in terms of generating colorblind-safe palettes, neither are they programmatic.

A few months ago I tried desperately to find a way to programmatically generate a bunch of effective, and preferably colorbind-safe color-palettes to no avail. I eventually stumbled across this website/tool:

I used the tool to generate 15 or so palettes that a user could then choose from. Not all are colorblind-safe, but I marked each palette as safe or not, so we could have a toggle in our tool where the user could choose to only view colorblind safe palettes or not. Each palette is a ColorPalette object, with an array of hex values, a title, a UID and a flag of whether or not it's colorblind-safe.

Perhaps the author of the tool would help you find a way to programmatically generate the palettes you require.

Good luck!

15 Nov 2010 - 12:47pm

Thanks wraevn!!!  That was exactly what I needed.  Thanks Chris, too.  I did try those sites and found some interesting color schemes, although the palettes they produced seemed a bit more arbitrary (and indeed unprogrammatic).  IxDA FTW

Syndicate content Get the feed