Change Windows Console Colors Using Regedit
This guide provides a straightforward method for modifying the
default color palette and screen colors of the Windows Command Prompt
using the Windows Registry Editor (regedit). By altering
specific keys under the console registry path, you can set custom
background and text colors or redefine the entire 16-color system
palette to match your preferred theme.
Step 1: Open the Registry Editor
- Press Win + R to open the Run dialog box.
- Type
regeditand press Enter. - Click Yes if prompted by User Account Control (UAC).
Step 2: Navigate to the Console Key
In the Registry Editor address bar, paste the following path and press Enter:
HKEY_CURRENT_USER\Console
Note: Changes made directly in the Console key apply
globally to all command line windows that do not have custom
application-specific subkeys.
Step
3: Modify Default Text and Background Colors
(ScreenColors)
The ScreenColors DWORD value controls the default
foreground (text) and background colors using hexadecimal
attributes.
- Locate the
ScreenColorsDWORD value in the right pane. If it does not exist, right-click an empty area, select New > DWORD (32-bit) Value, and name itScreenColors. - Double-click
ScreenColorsand set the Base to Hexadecimal. - Enter a two-digit hexadecimal value:
- The first digit sets the background color.
- The second digit sets the text color.
Color Reference Table:
0= Black1= Dark Blue2= Dark Green3= Dark Cyan4= Dark Red5= Dark Magenta6= Dark Yellow / Olive7= Light Gray8= Dark Gray9= Light BlueA= Light GreenB= Light CyanC= Light RedD= Light MagentaE= Light YellowF= White
(Example: Entering 0A produces standard black
background with light green text.)
- Click OK.
Step
4: Customize the Palette (ColorTable00 to
ColorTable15)
To alter the actual RGB definition of any of the 16 colors:
- Locate the keys named
ColorTable00throughColorTable15(these correspond to indices 0 through F in the reference table above). - Double-click the color you wish to customize and set the Base to Hexadecimal.
- Enter the color value using the 0x00BBGGRR format
(Blue, Green, Red in hexadecimal):
- Pure Red:
0x000000FF - Pure Green:
0x0000FF00 - Pure Blue:
0x00FF0000
- Pure Red:
- Click OK.
Step 5: Verify Changes
Close the Registry Editor and open a new Command Prompt window. The new default colors will take effect immediately.