Draft:Color (cmd.exe command)

From Wikipedia, the free encyclopedia

This page is for the command "color" in Windows cmd.exe. For the command prompt (a.k.a cmd), click here.

"Color", a cmd.exe command, is used to change the color to, green, blue, red, etc.

Beggining of command[edit]

The color command is only available in the Windows NT family, or any Microsoft Windows release after Windows NT 3.1. Windows NT 3.1 was released to manufacturing on July 27, 1993, which marks the beggining of the "color" command.

Color codes[edit]

When typing this command, it is needed to type in a color code. Below is the list for codes.

  • 0 = Black[1]
  • 1 = Blue[1]
  • 2 = Green[1]
  • 3 = Aqua[1]
  • 4 = Red[1]
  • 5 = Purple[1]
  • 6 = Yellow[1]
  • 7 = White[1]
  • 8 = Gray[1]
  • 9 = Light blue[1]
  • a = Light green[1]
  • b = Light aqua[1]
  • c = Light red[1]
  • d = Light purple[1]
  • e = Light yellow[1]
  • f = Bright white[1]

Type in the code like this.

color [col]
  • col is the color of your desire.

When changing the color with 2 characters, for example,

color 84

the background will change to Gray (8) and the foreground will change to Red (4).

However, when changing the color with 1 character, for example,

color e

it will only change the foreground to Light yellow (e), and will set the background to the default, Black (0)

  1. ^ a b c d e f g h i j k l m n o p JasonGerend (2023-09-20). "color". learn.microsoft.com. Retrieved 2023-12-27.