# [Tex/LaTex] Colored horizontal line between two texts

colorrules

How I can get color horizontal line between two texts? I am using command \rule{16cm}{1mm}. Can any one suggest how to change the color of horizontal line.

Very simply (don't forget \noindent if it's between paragraphs):

    \documentclass{article}

\usepackage[utf8]{inputenc}
\usepackage[x11names]{xcolor}
\usepackage{lipsum}
\usepackage[textwidth = 16cm]{geometry}
\begin{document}
\lipsum[1]

\noindent\textcolor{PaleVioletRed3}{\rule{16cm}{1mm}}

\lipsum[2]
\end{document}