I know that in bash terminals a reliable way to change color is using ANSI escape sequences. For example:
echo -e \"\\033[0;31mbrown text\\033[0;00m\"
This will work
echo -e "**\033[38;2;255;0;0m**red text\033[0;00m"
format: "\033[38;2;R;G;Bm"
"\033[38;2;R;G;Bm"