use colours from xcolors in latex text code example
Example: 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}
\usepackage{xcolor}
\begin{document}
This is a sample text in black.
\textcolor{blue}{This is a sample text in blue.}
\end{document}