Color command in Windows
The color command changes the foreground and background colors in the Command Prompt window for the current session. If used without parameters, the color command restores the default foreground and background colors of the Command Prompt window.
For an example of how to use this command, please see the Example below.
Syntax
color [[ ]]
Parameters
ParametersDescription Specifies the background color. Specify foreground color. /? Show help at the command prompt.Note
The following table lists valid hexadecimal digits that you can use as values for B and F.
Value Color 0 Black 1 Blue 2 Green 3 Mint Green 4 Red 5 Purple 6 Yellow 7 White 8 Gray 9 Light Blue A Light Green B Light mint Green C Light red D Light purple E Light yellow F Bright white- Do not use space characters between B and F.
- If you specify a hexadecimal digit, the corresponding color will be used as the foreground color and the background color is set to the default color.
- To set the default Command Prompt color window, click on the upper left corner of the Command Prompt window, click Defaults , click the Colors tab , then select the colors you want to use for Screen Text and Screen Background .
- If B and F are the same, the color command sets ERRORLEVEL to 1 and no changes are made to the background color or foreground color.
For example
To change the background color of the Command Prompt window to gray and the foreground color of the Command Prompt window to red, enter:
color 84
To change the foreground color of the Command Prompt window to light yellow, enter:
color e
Note:
In this example, the background is set to the default color because only one hexadecimal digit is specified.
See more:
- Cmdkey command in Windows
- Clip command in Windows
- The chkntfs command in Windows
You should read it
- The terminology of color, wheel color and skill used to color
- What is the profile color?
- Del command in Windows
- CSS color coding, standard color code in website design
- Standard color encoding for programmers and designers
- How to Change Color Saturation on Windows 10
- 4 software to help get professional color codes
- How to customize the Command Prompt on Windows
- Cmd command in Windows
- What is color space?
- Fc command in Windows
- Command at in Windows
Maybe you are interested
Instructions for creating PowerPoint background color effects - Create a new background for slides
How to blur an image to a background color in Photoshop quickly with Live Gradients
V-Color Unveils World's First RGB O CUDIMM DDR5: Overclocking Speed Up to 9200MT/s
What color will the iPhone 16 Pro Max be released in?
Instructions on how to change border color in Excel
Convert black and white photos to color in the blink of an eye