# A list of the 26 most differentiable colors?

**URL:** <https://boards.straightdope.com/t/a-list-of-the-26-most-differentiable-colors/653422>\
**Category:** Factual Questions\
**Created:** [March 20, 2013, 3:18am UTC](https://boards.straightdope.com/t/a-list-of-the-26-most-differentiable-colors/653422 "2013-03-20T03:18:56Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Comander\_Joans](https://avatars.discourse-cdn.com/v4/letter/c/b77776/32.png) [@Comander\_Joans](https://boards.straightdope.com/u/Comander_Joans)\
**Post date:** [March 20, 2013, 3:18am UTC](https://boards.straightdope.com/t/a-list-of-the-26-most-differentiable-colors/653422/1 "2013-03-20T03:18:56Z")

</div>

Hello you all. I am working on a mapping project and need to find the 26 most absolutely differentiable colors - colors that if placed next to one another are the most easily distinguishable.

I tried just dividing the hue slider in Photoshop by 26 and sampling each incrementally but that gave me no where near the flexibility and lightness to darkness contrasts I needed.

Does anyone know of a color format where the whole range of hues and brightness are along the same path so that it is more easily divisible … or perhaps there is a formula somewhere that would allow me to calculate the ‘n’ most differentiable colors? Maybe for the purposes of plotting?

Thanks in advance for any help!

---

<div class="post-metadata">

**Author:** ![Mr\_Downtown](https://avatars.discourse-cdn.com/v4/letter/m/8e8cbc/32.png) [@Mr\_Downtown](https://boards.straightdope.com/u/Mr_Downtown)\
**Post date:** [March 20, 2013, 4:09am UTC](https://boards.straightdope.com/t/a-list-of-the-26-most-differentiable-colors/653422/2 "2013-03-20T04:09:45Z")

</div>

My friend Cindy Brewer used a National Science Foundation grant to research the best color sequences for mapping, and makes the results available as [ColorBrewer.](http://colorbrewer2.org/) But 26 is beyond the scope of choropleth-type mapping.

Tell me more about the mapping project, or seek our advice on the mapping forum [CartoTalk.](http://www.cartotalk.com) For instance, I can’t imagine needing 26 colors the same intensity. Usually we want some foreground colors and some background colors of subtantially less intensity. Nine dark intense colors, nine grayed colors, and nine pastels, for instance, gets you to 27—but you’d want to use them for very different phenomena.

---

<div class="post-metadata">

**Author:** ![njtt](https://avatars.discourse-cdn.com/v4/letter/n/ecd19e/32.png) [@njtt](https://boards.straightdope.com/u/njtt)\
**Post date:** [March 20, 2013, 4:17am UTC](https://boards.straightdope.com/t/a-list-of-the-26-most-differentiable-colors/653422/3 "2013-03-20T04:17:43Z")

</div>

I guess you want a 3x3x3 slicing of a cubic version of the color solid (like [this](http://commons.wikimedia.org/wiki/File:RGB_color_solid_cube.png) or [these](http://en.wikipedia.org/wiki/File:Color_solid_comparison_hsl_hsv_rgb_cone_sphere_cube_cylinder.png)). That should give you 27 different colors/shades: not quite optimal but near enough. I don’t know how to do that in practice though.

I do not know quite what you are trying to achieve here, but FWIW I also think that, however you do this, your map is not going to be at all easily readable by eye. It is often difficult to tell which color from the legend a certain region is meant to be when the number of colors is _far_ lower than 26. It is not that one cannot distinguish two adjacent regions of slightly different color. That is fairly easy. However, if the colors are not all very different, it can be difficult to judge whether two non-adjacent regions are identically colored or just similar.

---

<div class="post-metadata">

**Author:** ![Comander\_Joans](https://avatars.discourse-cdn.com/v4/letter/c/b77776/32.png) [@Comander\_Joans](https://boards.straightdope.com/u/Comander_Joans)\
**Post date:** [March 20, 2013, 4:23am UTC](https://boards.straightdope.com/t/a-list-of-the-26-most-differentiable-colors/653422/4 "2013-03-20T04:23:38Z")

</div>

> [@Mr\_Downtown](#):
>
> My friend Cindy Brewer used a National Science Foundation grant to research the best color sequences for mapping, and makes the results available as [ColorBrewer.](http://colorbrewer2.org/) But 26 is beyond the scope of choropleth-type mapping.
> 
> Tell me more about the mapping project, or seek our advice on the mapping forum [CartoTalk.](http://www.cartotalk.com) For instance, I can’t imagine needing 26 colors the same intensity. Usually we want some foreground colors and some background colors of subtantially less intensity. Nine dark intense colors, nine grayed colors, and nine pastels, for instance, gets you to 27—but you’d want to use them for very different phenomena.

Actually I really didn’t explain that as well as I could have - what I meant to say was that with the way I was doing it I wasn’t getting the variation in intensity that would help them to be more distinguishable - I know it would be a lot easier to achieve with light and dark variations.

---

<div class="post-metadata">

**Author:** ![Comander\_Joans](https://avatars.discourse-cdn.com/v4/letter/c/b77776/32.png) [@Comander\_Joans](https://boards.straightdope.com/u/Comander_Joans)\
**Post date:** [March 20, 2013, 4:25am UTC](https://boards.straightdope.com/t/a-list-of-the-26-most-differentiable-colors/653422/5 "2013-03-20T04:25:48Z")

</div>

> [@njtt](#):
>
> I do not know quite what you are trying to achieve here, but FWIW I also think that, however you do this, your map is not going to be at all easily readable by eye. It is often difficult to tell which color from the legend a certain region is meant to be when the number of colors is _far_ lower than 26. It is not that one cannot distinguish two adjacent regions of slightly different color. That is fairly easy. However, if the colors are not all very different, it can be difficult to judge whether two non-adjacent regions are identically colored or just similar.

Thanks you all! And yes, this is my primary problem.

---

<div class="post-metadata">

**Author:** ![DataX](https://avatars.discourse-cdn.com/v4/letter/d/e99b99/32.png) [@DataX](https://boards.straightdope.com/u/DataX)\
**Post date:** [March 20, 2013, 4:26am UTC](https://boards.straightdope.com/t/a-list-of-the-26-most-differentiable-colors/653422/6 "2013-03-20T04:26:47Z")

</div>

I have done a decent amount of graphing work in my life. I think no matter how you do it - 26 different colors simply isn’t plausible. Sure you can come up with a scheme that will differentiate them as much as possible, but relying on 26 colors to make sense of your data isn’t practical.

If you simply are doing this for display purposes (have no intent of color being assigned to a key) that is one thing, but I think even 12 colors - while doable - is pushing it.

I mean think of resistor color codes - you have 10 there - maybe you can add pink - but what color can you really add without getting confusing? Sure you can break the blues/greys whatever up, but the person has to constantly look to see “is this the dark blue or light blue”? Is this gold or yellow?

---

<div class="post-metadata">

**Author:** ![Comander\_Joans](https://avatars.discourse-cdn.com/v4/letter/c/b77776/32.png) [@Comander\_Joans](https://boards.straightdope.com/u/Comander_Joans)\
**Post date:** [March 20, 2013, 4:33am UTC](https://boards.straightdope.com/t/a-list-of-the-26-most-differentiable-colors/653422/7 "2013-03-20T04:33:16Z")

</div>

For the sake of clarity I am not developing a carto-related map. I am helping a friend ‘map’ unique colors to each letter of the alphabet for a software project.

---

<div class="post-metadata">

**Author:** ![OldGuy](https://avatars.discourse-cdn.com/v4/letter/o/3bc359/32.png) [@OldGuy](https://boards.straightdope.com/u/OldGuy)\
**Post date:** [March 20, 2013, 4:41am UTC](https://boards.straightdope.com/t/a-list-of-the-26-most-differentiable-colors/653422/8 "2013-03-20T04:41:30Z")

</div>

Do they have to be just color differences. Can you have  
red solid  
red dots  
red horizontal strips  
red vertical stripes  
red diagonal strips  
those five should be easy to distinguish and you could do the same thing for 5 different colors and ad one more.

Or could you do  
red circle  
red square  
red triangle up  
red triangle down  
red diamond  
etc.

---

<div class="post-metadata">

**Author:** ![Chronos](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/chronos/32/134_2.png) [@Chronos](https://boards.straightdope.com/u/Chronos)\
**Post date:** [March 20, 2013, 5:03am UTC](https://boards.straightdope.com/t/a-list-of-the-26-most-differentiable-colors/653422/9 "2013-03-20T05:03:15Z")

</div>

Should the viewer just be able to distinguish the colors, or is it also important to be able to see detail between them? That is to say: Black and blue, for instance, are easily discernible, and most folks won’t mistake them for each other. But if you put black text on a blue background (or vice-versa), it’s very difficult to read. So, would they be an acceptable pair for your purposes?

---

<div class="post-metadata">

**Author:** ![Comander\_Joans](https://avatars.discourse-cdn.com/v4/letter/c/b77776/32.png) [@Comander\_Joans](https://boards.straightdope.com/u/Comander_Joans)\
**Post date:** [March 20, 2013, 5:06am UTC](https://boards.straightdope.com/t/a-list-of-the-26-most-differentiable-colors/653422/10 "2013-03-20T05:06:46Z")

</div>

> [@OldGuy](#):
>
> Do they have to be just color differences. Can you have  
> red solid  
> red dots  
> red horizontal strips  
> red vertical stripes  
> red diagonal strips  
> those five should be easy to distinguish and you could do the same thing for 5 different colors and ad one more.
> 
> Or could you do  
> red circle  
> red square  
> red triangle up  
> red triangle down  
> red diamond  
> etc.

They have to just be pure colors - 26 (or I guess 25 plus Black) uniquely identifiable colors.

Preferably somehow mathematically separated across the spectrum rather than, for instance, 26 named colors that are dissimilar.

---

<div class="post-metadata">

**Author:** ![Comander\_Joans](https://avatars.discourse-cdn.com/v4/letter/c/b77776/32.png) [@Comander\_Joans](https://boards.straightdope.com/u/Comander_Joans)\
**Post date:** [March 20, 2013, 5:14am UTC](https://boards.straightdope.com/t/a-list-of-the-26-most-differentiable-colors/653422/11 "2013-03-20T05:14:47Z")

</div>

> [@Chronos](#):
>
> Should the viewer just be able to distinguish the colors, or is it also important to be able to see detail between them? That is to say: Black and blue, for instance, are easily discernible, and most folks won’t mistake them for each other. But if you put black text on a blue background (or vice-versa), it’s very difficult to read. So, would they be an acceptable pair for your purposes?

For all practical purposes this would work - any reading of the colors by viewers would be on a white background.

As someone mentioned earlier though, two similar colors while discernible close to one another would work out fine, but if the other color happened to be nowhere around it may be a challenge to tell the difference between light grey and dark grey, for instance.

That’s why I have been trying to hit this with some kind of math in order to shave off as much of that similarity as I can.

---

<div class="post-metadata">

**Author:** ![Aspidistra](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/aspidistra/32/3894_2.png) [@Aspidistra](https://boards.straightdope.com/u/Aspidistra)\
**Post date:** [March 20, 2013, 5:38am UTC](https://boards.straightdope.com/t/a-list-of-the-26-most-differentiable-colors/653422/12 "2013-03-20T05:38:04Z")

</div>

This is possibly only a little less naive than the first scheme you had, but what if you do something like this:

Start with the 26 colours round the hue wheel, which are presumably all of similar saturation and brightness. Then  
1st one - double saturation  
2nd one - keep same  
3rd one - halve saturation  
4th one - double brightness  
5th one - halve brightness

…and so on and so on.

Does that do anything, or is this something you’ve tried already?

---

<div class="post-metadata">

**Author:** ![Comander\_Joans](https://avatars.discourse-cdn.com/v4/letter/c/b77776/32.png) [@Comander\_Joans](https://boards.straightdope.com/u/Comander_Joans)\
**Post date:** [March 20, 2013, 6:07am UTC](https://boards.straightdope.com/t/a-list-of-the-26-most-differentiable-colors/653422/13 "2013-03-20T06:07:38Z")

</div>

> [@Aspidistra](#):
>
> This is possibly only a little less naive than the first scheme you had, but what if you do something like this:
> 
> Start with the 26 colours round the hue wheel, which are presumably all of similar saturation and brightness. Then  
> 1st one - double saturation  
> 2nd one - keep same  
> 3rd one - halve saturation  
> 4th one - double brightness  
> 5th one - halve brightness
> 
> …and so on and so on.
> 
> Does that do anything, or is this something you’ve tried already?

That is definitely a viable option. I’ve seen some plotting functions that people have used where you can select ‘n’ colors and the software will generate that many dissimilar colors, but I’ve yet to find a good one and may have to resort to some good old fashioned logical method like this one.

---

<div class="post-metadata">

**Author:** ![septimus](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/septimus/32/410_2.png) [@septimus](https://boards.straightdope.com/u/septimus)\
**Post date:** [March 20, 2013, 6:43am UTC](https://boards.straightdope.com/t/a-list-of-the-26-most-differentiable-colors/653422/14 "2013-03-20T06:43:06Z")

</div>

Ignoring color-blind people, an approach would be to start with something like the CIE L_a_b\* or L_u_v\* spaces – where coordinates are based on human perceptual differences, not linearity. Then build a tetrahedron from the 2D gamut; assign colors in staggered fashion from slices of that tetrahedron, e.g. 1-3-5-8-5-3-1. You can Google to find best discussion of CIE L_a_b\*. [Here’s a page which may address your question directly.](http://www.daicolor.co.jp/english/color_e/color_e01.html)

Since 26 is a large number of distinguishable colors, I’ll guess you won’t even try to support color-blind people – even though 8% of Northern European males suffer from red-green vision deficiency. In [an earlier post](http://boards.straightdope.com/sdmb/showpost.php?p=15793019&postcount=7) I described the 7 colors I chose as a compromise for both normal and red-green deficient vision.

---

<div class="post-metadata">

**Author:** ![cmyk](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/cmyk/32/3353_2.png) [@cmyk](https://boards.straightdope.com/u/cmyk)\
**Post date:** [March 20, 2013, 9:08am UTC](https://boards.straightdope.com/t/a-list-of-the-26-most-differentiable-colors/653422/15 "2013-03-20T09:08:01Z")

</div>

Pink, red, maroon.

Peach, orange, ochre.

Cream, yellow, bronze.

Celery, green, olive.

Cyan, turquoise, teal.

Sky-blue, blue, navy.

Lavender, violet, eggplant.

White, 30% grey, 75% grey, black.

Brown.

---

<div class="post-metadata">

**Author:** ![cmyk](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/cmyk/32/3353_2.png) [@cmyk](https://boards.straightdope.com/u/cmyk)\
**Post date:** [March 20, 2013, 9:45am UTC](https://boards.straightdope.com/t/a-list-of-the-26-most-differentiable-colors/653422/16 "2013-03-20T09:45:03Z")

</div>

Here’s some quick swatches, FWIW.

[26 colors.](http://www.flickr.com/photos/7604613@N04/8574602900/in/photostream)

EDIT: The jpeg uses CMYK values. Flickr may not display them properly, if you’d like the actual values, just PM me.

---

<div class="post-metadata">

**Author:** ![cmyk](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/cmyk/32/3353_2.png) [@cmyk](https://boards.straightdope.com/u/cmyk)\
**Post date:** [March 20, 2013, 9:55am UTC](https://boards.straightdope.com/t/a-list-of-the-26-most-differentiable-colors/653422/17 "2013-03-20T09:55:52Z")

</div>

Converted to RGB, [here’s a better image.](http://www.flickr.com/photos/7604613@N04/8574619132/in/photostream)

---

<div class="post-metadata">

**Author:** ![CalMeacham](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/calmeacham/32/35_2.png) [@CalMeacham](https://boards.straightdope.com/u/CalMeacham)\
**Post date:** [March 20, 2013, 11:49am UTC](https://boards.straightdope.com/t/a-list-of-the-26-most-differentiable-colors/653422/18 "2013-03-20T11:49:11Z")

</div>

The inverse of what you’re looki ng for are the _least_ distinguishable colors, which are contained in _MacAdam Ellipses_: [MacAdam ellipse - Wikipedia](http://en.wikipedia.org/wiki/MacAdam_ellipse)  
David MacAdam was a professor at the Institute of Optics and a past president of the Optical Society of America who did a huge amount of work on color perception. ( A very modest guy who roamed the Institute halls deressed in a sweater, like an Optical Mister Rogers) His papers are worth reading. Obviously, you want colors whose Macadam Ellipses are far apart if they’re to be easily distinguishable.

---

<div class="post-metadata">

**Author:** ![digs](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/digs/32/14889_2.png) [@digs](https://boards.straightdope.com/u/digs)\
**Post date:** [March 20, 2013, 3:35pm UTC](https://boards.straightdope.com/t/a-list-of-the-26-most-differentiable-colors/653422/19 "2013-03-20T15:35:38Z")

</div>

> [@Comander\_Joans](#):
>
> For the sake of clarity I am not developing a carto-related map. I am helping a friend ‘map’ unique colors to each letter of the alphabet for a software project.

Oh… I assumed it was a map project. And got all excited, because I’d just been explaining to my kids all about Topology (and how it addresses ‘How Many Colors Does My Map Need?’).

If your designer friend wants a fun sidenote on colors, why not map a color to its initial letter? So the “Greenish-Blue” _T_ could be Teal or Turquoise.

Let’s see, A is for Amber, B is for Blue… Wikipedia has a list.

---

<div class="post-metadata">

**Author:** ![ZenBeam](https://avatars.discourse-cdn.com/v4/letter/z/3ab097/32.png) [@ZenBeam](https://boards.straightdope.com/u/ZenBeam)\
**Post date:** [March 20, 2013, 4:06pm UTC](https://boards.straightdope.com/t/a-list-of-the-26-most-differentiable-colors/653422/20 "2013-03-20T16:06:27Z")

</div>

I’d start with one of the suggestions above, make some examples with sentences or paragraphs using all the letters (_The quick brown fox …_), and see which letters need to be tweaked.

One issue I haven’t seen mentioned is that you may need a different set of colors for viewing on screen and for printing. Those will look different, and you could get a set you like, print it, and have it look bad. Even with separate colors for screen and printing, it may vary from monitor to monitor, or from one printer to the next.

[Next page](https://boards.straightdope.com/t/a-list-of-the-26-most-differentiable-colors/653422.md?page=2)
