Changing the color of CMD is one of the simplest ways to personalize the Windows Command Prompt and make your terminal easier to read. Whether you want a dark background with bright green text, a classic white-on-black look, or a high-contrast color scheme for long coding sessions, the process takes only a few seconds. Also, this guide explains how to change the color of CMD using built-in commands, how to make CMD colors more readable, and how to restore the default appearance if needed. It also covers common issues, color codes, and practical tips for users who want a more customized command-line experience.
What Is CMD and Why Change Its Color?
CMD, officially known as the Command Prompt, is the traditional command-line interpreter included with Microsoft Windows. It allows users to run commands, manage files, troubleshoot systems, and automate tasks without relying on a graphical interface. While CMD is mostly associated with functionality, its appearance matters more than many people realize Simple, but easy to overlook..
Changing the color of CMD can help in several ways:
- It can improve readability by increasing contrast between text and background.
- It can reduce eye strain during long sessions.
- It can help distinguish between different windows or tasks.
- It can simply make the command line feel more personal and modern.
Many users search for how to change CMD color after spending hours reading plain white or gray text. Fortunately, Windows includes built-in tools for changing both the CMD text color and the CMD background color without installing anything extra Less friction, more output..
How to Change the Color of CMD Using the color Command
The fastest way to change the color of CMD is to use the built-in color command. This command works directly inside the Command Prompt and lets you set both the background and foreground colors using a simple two-digit code.
Basic Syntax
The basic syntax is:
color [background][foreground]
Each character must be a hexadecimal digit from 0 to F. The first digit controls the background color, while the second digit controls the text color No workaround needed..
For example:
color 0A
This sets a black background with light green text.
Common CMD Color Commands
Here are some useful examples:
color 07– light gray text on a black backgroundcolor 0A– light green text on a black backgroundcolor 0B– light cyan text on a black backgroundcolor 0E– yellow text on a black backgroundcolor 0F– bright white text on a black backgroundcolor 70– black text on a white backgroundcolor 4C– light red text on a red backgroundcolor 1B– light cyan text on a blue background
To reset CMD to a more standard look, you can use:
color 07
If you want to restore the original default settings, you may need to use the Properties menu or reset the terminal preferences, which will be covered later in this article That alone is useful..
Step-by-Step Guide: How to Change CMD Color
Step 1: Open Command Prompt
Click the Start button, type cmd, and press Enter. You can also open CMD using the Run dialog by pressing Windows + R, typing cmd, and pressing Enter again That alone is useful..
Step 2: Type the Color Command
Once CMD is open, type the desired color code. Take this: to switch to light green text on a black background, type:
color 0A
Then press Enter It's one of those things that adds up..
Step 3: Check the Result
The command should immediately apply. If the text becomes hard to read, simply run another color command. For example:
color 0F
This can be helpful if the previous combination had poor contrast Small thing, real impact..
Step 4: Restore the Default Color
If you want to go back to a more neutral appearance, use:
color 07
You can also reset the color through the Command Prompt window settings if the color command does not behave as expected.
How to Change CMD Colors Permanently
The color command changes the current CMD session. If you close and reopen CMD, the setting may not remain. To make your preferred color scheme more persistent, you can use one of the following methods.
Method 1: Change Colors Through Command Prompt Properties
This is the easiest way to make CMD colors stay more consistent Worth keeping that in mind..
- Open Command Prompt.
- Click the top-left corner icon of the CMD window.
- Select Properties.
- Go to the Colors tab.
- Choose **
Choose a color from the palette, then click OK to apply the new scheme. The settings will remain in effect for the current session, and any new windows you open will inherit the chosen colors unless you modify them again.
Method 2 – Persistent Color via a Startup Batch File
If you want the same hue every time you launch CMD, you can create a simple batch file that runs the color command automatically:
- Open Notepad (or any plain‑text editor).
- Enter the line
color 0A(replace0Awith the code you prefer). - Save the file with a
.batextension, for exampleset‑cmd‑color.bat. - Place the file in the Startup folder (
shell:startupin the Run dialog) so it executes each time you log on.
Now every new Command Prompt window will start with the specified colors, giving you a consistent look without manually typing the command each session Small thing, real impact. Nothing fancy..
Method 3 – Registry Tweaks for Default Console Appearance
Advanced users can modify the Windows Registry to set a default color for the built‑in console host:
- Press Win + R, type
regedit, and press Enter. - deal with to
HKEY_CURRENT_USER\Console(create the key if it does not exist). - Inside this key, create a new String Value named
ScreenColorsand set it to a two‑digit hex code where the first digit is the background and the second digit is the foreground (e.g.,0A). - Restart Command Prompt; the new colors will appear automatically.
Note: This method only affects the console host’s default settings; it does not alter the behavior of color commands issued after the window opens.
Method 4 – Using Windows Terminal (Windows 10 + 11)
If you have upgraded to Windows Terminal, you can define a custom theme that includes background and text colors. Edit the settings.json file (accessible via the dropdown menu → Settings) and add a palette entry such as:
"colorScheme": "MyLightGreen",
"background": "#000000",
"foreground": "#00FF00"
Save the file, then select the new scheme from the dropdown. Windows Terminal will retain the colors across sessions, and you can still use the classic color command for temporary overrides.
Conclusion
Changing the color of Command Prompt is straightforward: a single color command alters the current session, while the Properties dialog, startup batch files, registry entries, or Windows Terminal configurations let you make the appearance more permanent. Choose the approach that best fits your workflow — simple color commands for occasional tweaks, or deeper customization methods for a consistently styled console environment. By applying one of these techniques, you can tailor the visual output of CMD to improve readability, reduce eye strain, or simply give your terminal a personal touch.
Below are a few extra tricks you might find useful once you’ve got the basics down, and some considerations when choosing which method fits your setup best But it adds up..
Quick‑look alternatives
| Goal | One‑liner | Where to put it |
|---|---|---|
| Always show bright green on black | set COLOR 32 (inside cmd /k) or add set _COLOR=32 to $PROGRAMMATIN>_BASICSET if you’re using the newer “inline” syntax. Think about it: |
Not needed – just type it before opening the window. |
| Apply the same theme to PowerShell | In PowerShell: Set-ExecutionPolicy -Scope Process -Force isn’t relevant; instead run Add-PSEnvironmentVariable -Name HostName -Value "MyTheme" or edit the PowerShell.ps1 profile. |
Check the “Profile” section under PowerShell → Environment. |
If you frequently switch between CMD and PowerShell, consider creating a tiny helper script (run-cmd.sh) that launches both shells with the desired variables exported, e.g The details matter here..
#!/bin/bash
exec cmd.exe /c "color 0F >> "%~dpn0"
exec powershell.exe -NoProfile -WindowStyle Hidden -Command "Set-Location /m"
Running the script
Quick‑look alternatives
| Goal | One‑liner | Where to put it |
|---|---|---|
| Always launch CMD with bright green on black | cmd /k color 0A |
Create a shortcut with this target, or add to a startup batch file |
| Apply the same theme to PowerShell | Edit $PROFILE and add: $host.So uI. RawUI.BackgroundColor = "Black"; $host.UI.That said, rawUI. ForegroundColor = "Green" |
Run notepad $PROFILE in PowerShell to create/edit your profile script |
| Sync colors across CMD and PowerShell | Use Windows Terminal with a shared color scheme | Define once in `settings. |
If you frequently switch between shells, Windows Terminal is the cleanest solution — define your palette once, and every profile (CMD, PowerShell, WSL, Git Bash) inherits it. For a lightweight portable option, keep a setup-console.bat on your USB drive:
@echo off
color 0A
title %USERNAME%'s Console
cls
echo Welcome back, %USERNAME%!
echo Current directory: %CD%
Double-click it anywhere for an instantly themed session And that's really what it comes down to. Practical, not theoretical..
Final thoughts
You now have a full toolkit: ephemeral color commands for quick tests, Properties dialogs for per-shortcut persistence, registry tweaks for system-wide defaults, batch-file launchers for portability, and Windows Terminal for modern, unified theming. Each method has its place — pick the one that matches how you work.
A well-chosen color scheme isn't just aesthetic; it reduces cognitive load, highlights errors faster, and makes long sessions less fatiguing. Spend five minutes setting it up once, and you'll reap the clarity every time you open a prompt.
Your console, your rules — make it readable, make it yours.