Color switching of a terahertz quantum cascade laser