# OpenLearning: How do I color part of a LaTeX formula?

Say I want to write x>3 with ">" written in red.

I tried the obvious, that is  \( x \textcolor{red}{>} 3\) but it does not work!