Example usage for color.
color 0ASet the foreground and background colours of the command window.
color [attr]The linked Microsoft Learn article is the upstream authority. Availability may depend on Windows release, role, optional feature or interactive tool context.
Example usage for color.
color 0A| Option / clause | Description |
|---|---|
<attr> | Use two hexadecimal digits: the first sets the background and the second the foreground. |
No argument | Restore the colors from the current command window. |
attr | Microsoft documents this argument or subcommand; check the linked reference for its required format and context. |
/? | Display command help or the supported command-line usage. |
Value | Microsoft documents this argument or subcommand; check the linked reference for its required format and context. |
0 | Microsoft documents this argument or subcommand; check the linked reference for its required format and context. |
1 | Microsoft documents this argument or subcommand; check the linked reference for its required format and context. |
2 | Microsoft documents this argument or subcommand; check the linked reference for its required format and context. |
3 | Microsoft documents this argument or subcommand; check the linked reference for its required format and context. |
4 | Microsoft documents this argument or subcommand; check the linked reference for its required format and context. |
5 | Microsoft documents this argument or subcommand; check the linked reference for its required format and context. |
6 | Microsoft documents this argument or subcommand; check the linked reference for its required format and context. |
7 | Microsoft documents this argument or subcommand; check the linked reference for its required format and context. |
8 | Microsoft documents this argument or subcommand; check the linked reference for its required format and context. |
9 | Microsoft documents this argument or subcommand; check the linked reference for its required format and context. |
a | Microsoft documents this argument or subcommand; check the linked reference for its required format and context. |
b | Microsoft documents this argument or subcommand; check the linked reference for its required format and context. |
c | Microsoft documents this argument or subcommand; check the linked reference for its required format and context. |
d | Microsoft documents this argument or subcommand; check the linked reference for its required format and context. |
e | Microsoft documents this argument or subcommand; check the linked reference for its required format and context. |
f | Microsoft documents this argument or subcommand; check the linked reference for its required format and context. |
Review a command and its target before running it. Commands that alter files, services, accounts, disks, permissions or databases may be difficult to reverse. Test in a safe environment and keep backups.