No. A simple txt file contains only plain text with a handful of the standard plain text formatting symbols (like newline and tab). Plain text file format does not allow colour.
If you want to keep the simplicity of writing out standard text, but need colour, consider writing out some other format that is plain text with markup; html perhaps, or rtf or some kind of other markup.