Sets console foreground and background colors. Returns ERRORLEVEL 1 if you try to set the foreground and background colors to the same value.
color fb
Parameters | ||
---|---|---|
| ||
Parameter | Purpose | |
| ||
none | Restores default colors. | |
f | Sets the foreground color based on a hexadecimal value. | |
b | Sets the background color based on a hexadecimal value. | |
0 | Black | |
1 | Blue | |
2 | Green | |
3 | Aqua | |
4 | Red | |
5 | Purple | |
6 | Yellow | |
7 | White | |
8 | Gray | |
9 | Light blue | |
A | Light green | |
B | Light aqua | |
C | Light red | |
D | Light purple | |
E | Light yellow | |
F | Bright white |