Skip to content

Windows COLOR command

The Windows COLOR command is a useful tool for customizing the appearance of the command prompt in Windows. This command allows users to change the text and background colors quickly and easily. By using specific codes with the COLOR command, you can create a personalized command prompt environment that suits your preferences. Whether you want a traditional black background with white text or a bold color scheme, the COLOR command makes it simple to customize your command prompt. This feature is particularly helpful for users who spend a lot of time working in the command prompt and want to improve their workflow by making it more visually appealing. Overall, the Windows COLOR command is a handy tool for enhancing the user experience in the command prompt and adding a touch of personalization to your Windows operating system.

COLOR Syntax:

Terminal window
color [attribute]

Options:

OptionDescription
0Black
1Blue
2Green
3Aqua (Light Blue)
4Red
5Purple
6Yellow
7White
8Gray
9Light Blue
ALight Green
BLight Aqua
CLight Red
DLight Purple
ELight Yellow
FBright White (intense)

Parameters:

ParameterDescription
attributeSpecifies the color attribute to set. This can be a digit from 0 to F representing the color to set.

COLOR Usage:

Change the Console Background Color to Blue

Terminal window
color 17

Changes the console background to blue.

Change the Console Text Color to Green

Terminal window
color A2

Changes the console text color to green.

Reset Console Colors to Default

Terminal window
color

Resets the console colors to the default scheme.

Display Available Colors

Terminal window
color /?

Displays information on using the color command and the available color codes.

How do I use color in CMD?

To use the color command in CMD, execute the following command:

Terminal window
color --option <value>

How can I change the text color in CMD?

To change the text color in CMD, use the color command followed by the desired text color code. For example:

Terminal window
color 0A

Can I change the background color in CMD?

Yes, you can change the background color in CMD using the color command. Simply specify the desired background color code after the command. For instance:

Terminal window
color 5F

How do I reset the color settings in CMD?

To reset the color settings in CMD back to the default color combination (black background and white text), you can use the color command without any additional parameters. Execute:

Terminal window
color

How many color combinations are available in CMD?

In CMD, you have a total of 16 different color combinations to choose from for text and background colors. Each combination is represented by a unique color code.

Can I customize the color scheme in CMD?

Yes, you can customize the color scheme in CMD by choosing different text and background color combinations using the color command along with the appropriate color codes.

What is the default text color in CMD?

The default text color in CMD is white, while the default background color is black. ​

Common Questions on COLOR Usage:

{Questions}

Applications of the COLOR Command

  1. Changing the color of the command prompt text
  2. Changing the color of the command prompt background
  3. Customizing the appearance of the command prompt for better readability and personal preference.