ANSI 256 colors table (8-bit)

References: Wikipedia

0-15: named colors

The name of these colors are in the specification, but the actual colors depends on the terminal and user configuration. 0-7 are standard colors, and 8-15 high-intensity versions.

  0  1  2  3  4  5  6  7
  8  9101112131415

16-231: 216 colors

It's a 6×6×6 color cube, with blue green and red dimensions. Blue changes at each steps (each column in the example), green every 6 steps (each 6×6 square in the example), red every 36 steps (each row in the example). The 6 levels in each dimensions are 0, 95, 135, 175, 215 and 255.

161718192021222324252627282930313233343536373839404142434445464748495051
525354555657585960616263646566676869707172737475767778798081828384858687
888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231

232-255: gray

It's a scale of 24 shades of gray, with the level increasing 10 by 10, from (8,8,8) to (238,238,238).

232233234235236237238239240241242243244245246247248249250251252253254255