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
- 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?
May be interested
- Set command in Windowsthe set command helps show, set or remove cmd.exe environment variables.
- Del command in Windowsthe del command deletes one or more files. this command is the same as the eraser command.
- 10 useful commands in Windows you should knowcommand prompt is used to execute batch files, perform tasks quickly, help you troubleshoot and solve some windows problems when the system crashes. however, not all commands in windows are useful and must be done regularly. with the 10 command lines in the following article it is very useful even if you are not an administrator.
- 4 software to help get professional color codesthe following 4 color-coded tools will help to get the color code from any image on windows without having to use photoshop.
- How to use the option equivalent to the 'ls' command in Windowsthe 'ls' command (note ls, not is) is one of the first terminal commands veterans teach to linux beginners.
- The command reg add in Windowsthe reg add command adds new subkeys or entries to the registry.
- Rem command in Windowsthe rem command helps write comments (comments) in a batch file or config.sys.
- What is the profile color?color profile determines the color we take with the camera and sees it on the screen. it controls the colors used and helps to bring consistency between devices.
- How to enable Auto Color Management for applications in Windows 11auto color management is a new windows feature that improves the color quality of digital images and makes them look more natural. it's almost like having an exclusive color specialist in place right at your fingertips.
- Instructions for using Command Promptdeep in windows is a command-line world that is obscure. in this article, we will show you how to solve errors and make your computer more secure.