Ametameric                    

A 16 color palette for dichromats and trichromats

Ametameric is as a system palette that provides the standard CGA/ANSI colors accomodating various forms of human color blindness/color vision deficiencies. 16 colors (including white, black and two grays) that all provide sufficient contrast for all common types of color vision. For use in terminals and as a color set for lines in charts/visualization, for further palettes that work well (only) for red/green color vision anomalies Paul Tol's Color schems and templates. is valuable.

The following chart shows all color combinations. If ametameric works as intended only the intersections on the diagonal from top-left to bottom-right should be blending into each other; being nearer each other than many other color pairs is OK. Being practically impossible to discern presence of shape when used for text on each other is not.

0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15  
                                 
1                                
                                 
2                                
                                 
3                                
                                 
4                                
                                 
5                                
                                 
6                                
                                 
7                                
                                 
8                                
                                 
9                                
                                 
10                                
                                 
11                                
                                 
12                                
                                 
13                                
                                 
14                                
                                 
15                                
                                 
                                 

The 8bit sRGB palette values and corrsponding color values in CIE Lab and CIE Lch:

idxnamehex RGBdec RGBCIE LabCIE Lch
0black#0000000, 0, 00, 0, 00, 0, 0
1red#7f0521127, 5, 3327, 48, 2227, 53, 25
2green#48a04b72, 160, 7559, -41, 3659, 54, 139
3brown#a36000163, 96, 048, 24, 5648, 60, 67
4blue#0a0aaa10, 10, 17019, 48, -8119, 94, 301
5magenta#9131be145, 49, 19041, 56, -5641, 80, 315
6cyan#3282ae50, 130, 17451, -14, -3151, 34, 246
7bright-gray#a7a7a7167, 167, 16768, 0, 068, 0, 0
8gray#58585888, 88, 8837, 0, 037, 0, 0
9bright-red#ff9b82255, 155, 13074, 36, 3074, 47, 39
10bright-green#5af5a090, 245, 16087, -57, 2887, 64, 153
11yellow#ffe600255, 230, 091, -4, 8991, 89, 93
12bright-blue#0000ff0, 0, 25530, 68, -11230, 131, 301
13bright-magenta#de90f2222, 144, 24271, 42, -3771, 56, 318
14bright-cyan#8ed0fd142, 208, 25380, -13, -2980, 32, 246
15white#ffffff255, 255, 255100, 0, 0100, 0, 90

Downloads

ametameric.gplGIMP Palette
ametameric.escinitializes ametameric as the 16 system colors, reset foreground/background.
ametameric-reverse.esc initialize ametameric as the 16 system colors, but with dark on bright text.
ametameric-desaturated.esc The ametameric palette linearly combined in XYZ space with its corresponding luminance by a factor of 0.85. The internal color relationships remain as in the base ametameric palette. This is also useful with wide gamut displays to avoid super-saturated colors in the part of the gamut that is wider than normal in non-color managed terminal emulators.
The .esc files contains escape sequences that seem compatible with xterm, vte (gnome-terminal and friends), mlterm, kitty and iterm2. It is possible to test-run ametamric in a compatible terminal you can curl the url which will feed the sequence to the active terminal, like so:
user@host:~$ curl https://pippin.gimp.org/ametameric/ametameric.esc
 Ametameric  20200423       
user@host:~$

If it works the colors of the terminal will change, note that most terminal emulators on linux are not color managed; thus with a widegamut display this will yield over-saturated colors.

Color Blindness Simulation

The following grids show the same grid og all combinations through dichromat simulation, using the tables from Martin Krzywinski's Color Palettes for Color Blindness page. These are different from the color vision deficienct simulator in GIMP as well as different from the Coblis on color-blindness.com, so both of these have additionally been used in verification; being in agreement with all of these hopefully means that discrimation is also achieved in human dichromats.

  1 2 3 4 5 6 7 8 9 10 11 12 13 14 15  
                                 
1                                
                                 
2                                
                                 
3                                
                                 
4                                
                                 
5                                
                                 
6                                
                                 
7                                
                                 
8                                
                                 
9                                
                                 
10                                
                                 
11                                
                                 
12                                
                                 
13                                
                                 
14                                
                                 
15                                
                                 
                                 
Protanopia
  1 2 3 4 5 6 7 8 9 10 11 12 13 14 15  
                                 
1                                
                                 
2                                
                                 
3                                
                                 
4                                
                                 
5                                
                                 
6                                
                                 
7                                
                                 
8                                
                                 
9                                
                                 
10                                
                                 
11                                
                                 
12                                
                                 
13                                
                                 
14                                
                                 
15                                
                                 
                                 
Deuteranopia
  1 2 3 4 5 6 7 8 9 10 11 12 13 14 15  
                                 
1                                
                                 
2                                
                                 
3                                
                                 
4                                
                                 
5                                
                                 
6                                
                                 
7                                
                                 
8                                
                                 
9                                
                                 
10                                
                                 
11                                
                                 
12                                
                                 
13                                
                                 
14                                
                                 
15                                
                                 
                                 
Tritanopia
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15  
                                 
1                                
                                 
2                                
                                 
3                                
                                 
4                                
                                 
5                                
                                 
6                                
                                 
7                                
                                 
8                                
                                 
9                                
                                 
10                                
                                 
11                                
                                 
12                                
                                 
13                                
                                 
14                                
                                 
15                                
                                 
                                 
Trichromat
 

Colors ordered by difference importance

Excluding black and white as colors - and using them as possible backgrounds. An order of introducing colors that continuously maintains a high level of contrast (useful for additional lines in charts, bar diagrams etc.):

              

              
              
              

License

Public Domain Mark
The palette values of (ametameric, by Øyvind Kolås), identified by Øyvind Kolås, is free of known copyright restrictions.

Though attribution is not neccesary; using the name of the palette and attribution in the form of links to this page is appreciated.

Design process

As an emergent guide through the manual optimization process, two 2dimensional gamuts for dichromats appeared, one for the red/green deviances protanopia and deuteranopia, and another for tritanopia.

The two 2d gamuts split the colors into three groups, grays, cold and warm colors. For tritanopia the cold shades are blue and warm are red, while in the simulated gamutes for protanopia and deuteronopia the warm patches have a yellow tint.

    
    
    
    
Trichromacy
    
    
    
    
Protanopia
    
    
    
    
Deuteronopia
    
    
    
    
Trichromacy
    
    
    
    
Tritanopia

In addition to these visualization aids, an optimizer that scores the 5 worst pairs using a cross-observer color difference metric is used to do small permutation on an input iteration with the worst collisions taken away, permiting rapid though very manual iteration of possibly better solutions.

                
                

Some humans are actually color blind and have achromatic vision, I am not sure if that corresponds to luminance as seen by the normal observer, but effort has been made to ensure each slot in the palette have a different luminance, preserving contrast upon conversions to grayscale; like sometimes when printing.

NOTE:This page relies on background/text color specified in CSS being interpreted as sRGB and correctly converted to display. Otherwise colors will be oversaturated on wide-gamut displays; the desired dichromat discrimination probably still works though.

Exhaustive Text fg/bg tests

white
black red green brown blue magenta cyan bright gray dark gray bright red bright green yellow bright blue bright magenta bright cyan white.

black
black red green brown blue magenta cyan bright gray dark gray bright red bright green yellow bright blue bright magenta bright cyan white.

dark-gray.
black red green brown blue magenta cyan bright gray dark gray bright red bright green yellow bright blue bright magenta bright cyan white.

bright gray
black red green brown blue magenta cyan bright gray dark gray bright red bright green yellow bright blue bright magenta bright cyan white.

blue as in midnight commander
black red green brown blue magenta cyan bright gray dark gray bright red bright green yellow bright blue bright magenta bright cyan white.

red
black red green brown blue magenta cyan bright gray dark gray bright red bright green yellow bright blue bright magenta bright cyan white.

green
black red green brown blue magenta cyan bright gray dark gray bright red bright green yellow bright blue bright magenta bright cyan white.

brown
black red green brown blue magenta cyan bright gray dark gray bright red bright green yellow bright blue bright magenta bright cyan white.

magenta
black red green brown blue magenta cyan bright gray dark gray bright red bright green yellow bright blue bright magenta bright cyan white.

cyan
black red green brown blue magenta cyan bright gray dark gray bright red bright green yellow bright blue bright magenta bright cyan white.

bright red
black red green brown blue magenta cyan bright gray dark gray bright red bright green yellow bright blue bright magenta bright cyan white.

bright green
black red green brown blue magenta cyan bright gray dark gray bright red bright green yellow bright blue bright magenta bright cyan white.

yellow
black red green brown blue magenta cyan bright gray dark gray bright red bright green yellow bright blue bright magenta bright cyan white.

bright blue
black red green brown blue magenta cyan bright gray dark gray bright red bright green yellow bright blue bright magenta bright cyan white.

bright magenta
black red green brown blue magenta cyan bright gray dark gray bright red bright green yellow bright blue bright magenta bright cyan white.

bright cyan
black red green brown blue magenta cyan bright gray dark gray bright red bright green yellow bright blue bright magenta bright cyan white.