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. When working as intended, TUIs made to work well with the system colors (rather than 256/true color) should become accesible for color vision deficient users without further tweaks needed.

    
    
    
    

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#a02929160, 41, 4137, 49, 3137, 58, 32
2green#4aa08b74, 160, 13960, -31, 360, 31, 175
3brown#878453135, 132, 8355, -5, 2755, 27, 100
4blue#2424ed36, 36, 23731, 56, -9931, 114, 300
5magenta#ab4adf171, 74, 22350, 58, -6050, 83, 314
6cyan#3b6bb159, 107, 17744, 1, -4344, 43, 272
7bright-gray#c3c3c3195, 195, 19579, 0, 079, 0, 0
8gray#6f6f6f111, 111, 11147, 0, 047, 0, 0
9bright-red#edac82237, 172, 13076, 21, 3276, 38, 56
10bright-green#99edba153, 237, 18687, -35, 1687, 38, 155
11yellow#e9d808233, 216, 886, -7, 8486, 84, 95
12bright-blue#82b4ed130, 180, 23771, -6, -3471, 35, 260
13bright-magenta#d66fed214, 111, 23763, 55, -4763, 72, 320
14bright-cyan#1de1ed29, 225, 23782, -42, -1982, 46, 204
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 compatible with xterm, vte (gnome-terminal and friends), mlterm, kitty and iterm2. By catting these files inside a compatible terminal the system colors are overridden for the session.
user@host:~$ curl https://pippin.gimp.org/ametameric/ametameric.esc
 Ametameric  20200920       
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.

Change Log

20200423
initial release
20200920
skew all colors away from black and white optimizing contrast with those.

Color Deficiency Preview/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, but the differences are large enough to register with all of them; and verification of the approach agrees with discrimination observed by at least deuteranopes.

  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
 

Ametameric internals

The core of ametamerics constraints is puzzling the 16 colors into two 4x4 palettes, that have an unbroken gradient for deuteranopes and tritanopes. As well as acceptable gradients on each row and column, like a multi-dimensional sudoku. For each permutation the colors have been adjusted for improved contrast - as well as maintaining trichromat identification and constraints.

    
    
    
    
Trichromacy
    
    
    
    
Protanopia
    
    
    
    
Deuteronopia
    
    
    
    
Trichromacy
    
    
    
    
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.

Full color-blindness, seeing grayscale is rare. But some contrast in grayscale conversions also desirable for printing and other desaturations of screenshots/windows. A final constraint maintained is thus some steps in the grayscale gradient conversion. The gradient has a large gap between black and the grays and white and the grays, this ensures contrast on black as well as white backgrounds.

                
                

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 test of text in all colors on backgrounds with all colors

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.

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.