In WINDOWS:
color
Sets the default foreground and background colors of the console.
COLOR
attr Specifies the color attributes of console output
The color attribute is specified by two hexadecimal digits -- the first
is the background, the second is the foreground. Each digit can be one of the following values:
0 = black 8 = gray
1 = blue 9 = light blue
2 = green A = light green
3 = turquoise B = light turquoise
4 = red C = light red
5 = purple D = light purple
6 = yellow E = light yellow
7 = white F = bright white
If no parameters are given, the command restores the color to what it was when CMD.EXE started. This value comes from the current console window, the /T switch, or the DefaultColor registry value.
If the COLOR command is executed with the same foreground and background colors, the COLOR command sets ERRORLEVEL to 1.
For example: "COLOR fc" produces bright red on bright white
For DOS:
http://www.cn-dos.net/forum/viewthread.php?tid=1272&fpage=1&highlight=ANSI