overleaf colored text code example
Example 1: text color in latex
\textcolor{<color name goes here}{<the text which you want to color goes here>}
Example 2: latex coloured text
\textcolor{red}{
}
\textcolor{<color name goes here}{<the text which you want to color goes here>}
\textcolor{red}{
}