Term of the Moment

digital perfection


Look Up Another Term


Definition: PC color codes


Following are the color numbers for the 16 foreground and eight background colors in the PC's text mode. Foreground and background numbers are added together; for example, white text on a red background is 79. To blink the text, add 128.

               Foreground  Background
  Color        Number      Number

  Black           0          0
  Blue            1         16
  Green           2         32
  Cyan            3         48
  Red             4         64
  Magenta         5         80
  Brown           6         96
  Light gray      7        112

  Dark gray       8
  Light blue      9
  Light green    10
  Light cyan     11
  Light red      12
  Light magenta  13
  Yellow         14
  White          15

  Blinking       add 128