This is the fault of the terminal settings. It gets to decide what color each ANSI value means. There's not much you can do from inside a basic console program unless you have a 256-color terminal.
There's probably a way to change the terminal's settings using various windows APIs (registry settings? ui automation or something?) but that's a whole other can of fish which I'll defer to windows programmers.
For your own purposes, you can just go into the terminal settings and change the puke yellow color to the brown you want.