How can I make dummy text (like \lipsum) grey?

How about

\documentclass{article}
\usepackage{xcolor}
\usepackage{lipsum}
\SetLipsumParListSurrounders{\colorlet{oldcolor}{.}\color{gray}}{\color{oldcolor}}
\begin{document}
Hello

\lipsum[1-2]

Hello hello

\textcolor{red}{Hello again \lipsum[3] and again}
\end{document}

enter image description here

EDIT: @egreg kindly pointed out a simpler solution:

\SetLipsumParListSurrounders{\begingroup\color{gray}}{\endgroup}

Apart from being simpler it also avoids overwriting oldcolor which some other macro might be using.


For older versions of lipsum, which don't have \SetLipsumParListSurrounders

\documentclass{article}
\usepackage{lipsum}
\usepackage{xcolor}

\makeatletter
\renewcommand\lips@dolipsum{%
  \ifnum\value{lips@count}<\lips@max\relax
    \addtocounter{lips@count}{1}%
    \begingroup
      \color{gray}% <--- Change color here
      \csname lipsum@\romannumeral\c@lips@count\endcsname
    \endgroup
    \expandafter\lips@dolipsum
  \fi
}
\makeatother

\begin{document}

Hello

\lipsum[1-2]

Hello hello

\textcolor{red}{Hello again \lipsum[3] and again}

\end{document}