change font color latex code example
Example 1: tex color text
\usepackage{xcolor}
\begin{document}
This is a sample text in black.
\textcolor{blue}{This is a sample text in blue.}
\end{document}
Example 2: text color in latex
\textcolor{}
Example 3: latex coloured text
\textcolor{red}{
}