I have just amalgamated the good catches in all solutions and ended up with:
cecho(){
RED="\033[0;31m"
GREEN="\033[0;32m"
YELLOW="\033[1;33m"
# ... ADD MORE COLORS
NC="\033[0m" # No Color
printf "${!1}${2} ${NC}\n"
}
And you can just call it as:
cecho "RED" "Helloworld"