$$ \definecolor{c01}{RGB}{255,150,0} \definecolor{c02}{RGB}{0,0,200} \let\vecb\vec \renewcommand{\vec}[1]{\vecb{\mathbf{#1}}} \let\oldhat\hat \renewcommand{\hat}[1]{\oldhat{\mathbf{#1}}} $$