This article introduces how to change the echo command output color to red in the Bash command line on Linux PCs and servers.
RED='\033[0;31m'
NC='\033[0m' # No Color
echo -e "I ${RED}love${NC} Stack Overflow"
bash - How to change the output color of echo in Linux - Stack Overflow
If you want to change the error output (stderr) instead of standard output, it gets a bit more complex.
Reference: