How to change the color of the command prompt using the color command

Most people are used to the traditional white text on black background look of the command prompt screen, but did you know that you can easily change both the text and background color using a simple command?

Open Command Prompt as Administrator

1) Press the Windows Key
2) Type cmd and press return
3) Right Click the Command Prompt icon and select ‘ Run as Administrator’

Color command options

The color command has numerous options

Sets the default console foreground and background colors.

COLOR [attr]

attr Specifies color attribute of console output

Color attributes are specified by TWO hex digits — the first
corresponds to the background; the second the foreground. Each digit
can be any of the following values:

0 = Black       8 = Gray
1 = Blue        9 = Light Blue
2 = Green       A = Light Green
3 = Aqua        B = Light Aqua
4 = Red         C = Light Red
5 = Purple      D = Light Purple
6 = Yellow      E = Light Yellow
7 = White       F = Bright White

If no argument is given, this command restores the color to what it was
when CMD.EXE started. This value either comes from the current console
window, the /T command line switch or from the DefaultColor registry

The COLOR command sets ERRORLEVEL to 1 if an attempt is made to execute
the COLOR command with a foreground and background color that are the

Example: “COLOR fc” produces light red on bright white

Copy and Paste the Command

In the command prompt window enter the below command and press return


Followed by a combination of (0-9/A-F) (0-9/A-F) depending on which color you’d like

For example if you wanted light red text on a black background you would type

color fc

Which would give you this

Leave a Comment