Programmers Palettes

CGA color palette as decimal values
hardware fixed index palette
 
01234567
89101112131415
 
values : main : hex : names : palettes
 
NOTES: fbterm256 decimal values, xterm256 hexidecimal values
 
You can (also using an editor) select and copy entire columns
#
No.
html
color
official
name
comma+space
values
comma
values
fbterm
colors
CSS
rgb()
C/C++
array
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
_
#000000
#0000aa
#00aa00
#00aaaa
#aa0000
#aa00aa
#aa5500
#aaaaaa
#555555
#5555ff
#55ff55
#55ffff
#ff5555
#ff55ff
#ffff55
#ffffff
_
black
low blue
low green
low cyan
low red
low magenta
brown
light gray
dark gray
high blue
high green
high cyan
high red
high magenta
yellow
white
_
0, 0, 0
0, 0, 170
0, 170, 0
0, 170, 170
170, 0, 0
170, 0, 170
170, 85, 0
170, 170, 170
85, 85, 85
85, 85, 255
85, 255, 85
85, 255, 255
255, 85, 85
255, 85, 255
255, 255, 85
255, 255, 255
_
0,0,0
0,0,170
0,170,0
0,170,170
170,0,0
170,0,170
170,85,0
170,170,170
85,85,85
85,85,255
85,255,85
85,255,255
255,85,85
255,85,255
255,255,85
255,255,255
_
0;0;0
0;0;170
0;170;0
0;170;170
170;0;0
170;0;170
170;85;0
170;170;170
85;85;85
85;85;255
85;255;85
85;255;255
255;85;85
255;85;255
255;255;85
255;255;255
_
rgb(0,0,0);
rgb(0,0,170);
rgb(0,170,0);
rgb(0,170,170);
rgb(170,0,0);
rgb(170,0,170);
rgb(170,85,0);
rgb(170,170,170);
rgb(85,85,85);
rgb(85,85,255);
rgb(85,255,85);
rgb(85,255,255);
rgb(255,85,85);
rgb(255,85,255);
rgb(255,255,85);
rgb(255,255,255);
_
char colors[][3] = { { 0, 0, 0 },
{ 0, 0, 170 },
{ 0, 170, 0 },
{ 0, 170, 170 },
{ 170, 0, 0 },
{ 170, 0, 170 },
{ 170, 85, 0 },
{ 170, 170, 170 },
{ 85, 85, 85 },
{ 85, 85, 255 },
{ 85, 255, 85 },
{ 85, 255, 255 },
{ 255, 85, 85 },
{ 255, 85, 255 },
{ 255, 255, 85 },
{ 255, 255, 255 } };
_
 
(in ./HW-CGA/): ls *dec* | grep -v "\.html"
HW-CGA-C-dec-RGB-array.h
HW-CGA-C-names-dec-RGB-arrays.h
HW-CGA-dec-24-space.lst
HW-CGA-dec-24-space.txt
HW-CGA-dec-24-space-comma.txt
HW-CGA-dec-24-comma-space.txt
HW-CGA-dec-24-comma.txt
HW-CGA-dec-24-semi-colon.txt
HW-CGA-dec-24-space-BGR888.txt
HW-CGA-dec-32-space-BGRA8888.txt
HW-CGA-dec-24-space-BRG888.txt
HW-CGA.fbterm.16colors.sh