Changing Colours in Command Prompt

Last Updated : 16 Mar, 2026

Customizing the Command Prompt colors helps improve visibility and personalize the interface. You can easily modify the text and background colors to create a more comfortable workspace.

  • The Command Prompt opens with a default color scheme.
  • Colors can be customized to create a clearer and more personalized workspace.
Screenshot-2026-03-16-111848
Default color scheme

Setting Command Prompt Colors Temporarily

Use the color command with two hexadecimal values to set the background and text colors for the current session.

color XY
  • x sets the background color.
  • y sets the text color.

To get all the related information on using color command in Command Prompt you can use the following command

color /?
Screenshot-2026-03-16-113408

Example 1: Setting white background and light purple text color.

To set a white background and light purple text, replace x with F and y with D in the color command according to the color table.

color FD
Screenshot-2026-03-16-113023

Example 2: Setting black background and light green text color.

‘0’ sets the black background, while ‘A’ sets the light green text color in the Command Prompt.

color 0A
Screenshot-2026-03-16-113113

To get all the related information on using color command in Command Prompt you can use the following command:

color /?

Setting Command Prompt Colors Permanently

You can permanently change the Command Prompt text and background colors using the Properties menu or by configuring the Windows Registry.

1. Using Command Prompt Properties (GUI Method)

  • Open Command Prompt.
  • Right-click the title bar of the CMD window.
  • Select Properties.
  • Go to the Colors tab.
  • Choose your preferred Screen Text and Screen Background colors.
  • Click Apply and then OK.

These settings will be saved and applied every time you open CMD.

2. Using Windows Registry (Command Line Method)

You can configure CMD to run a color command automatically at startup.

Run the following command in Command Prompt:

reg add "HKCU\Software\Microsoft\Command Processor" /v AutoRun /t REG_SZ /d "color 0A" /f
Screenshot-2026-03-16-111410
  • AutoRun executes whenever CMD starts.
  • color 0A sets black background and green text.
  • You can replace 0A with any color code you prefer.

Close the current Command Prompt and open a new one to see the applied changes.

Screenshot-2026-03-16-111644
Comment