latex text colors 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{<color name goes here}{<the text which you want to color goes here>}
Example 3: latex coloured text
\textcolor{red}{
}