\documentclass[11pt]{article}
\usepackage[usenames,dvipsnames]{color}
\begin{document}
\pagecolor{black}
\textcolor{black}{black}
\textcolor{white}{white}
\textcolor{red}{red}
\textcolor{blue}{blue}
\textcolor{green}{green}
\\
\colorbox{white}{
  \textcolor{black}{black}
  \textcolor{white}{white}
  \textcolor{red}{red}
  \textcolor{blue}{blue}
  \textcolor{green}{green}
}
\colorbox{yellow}{
  \textcolor{black}{black}
  \textcolor{white}{white}
  \textcolor{red}{red}
  \textcolor{blue}{blue}
  \textcolor{green}{green}
}
\newpage
\pagecolor{white}
\textcolor{black}{black}
\textcolor{white}{white}
\textcolor{red}{red}
\textcolor{blue}{blue}
\textcolor{green}{green}
\\
\colorbox{white}{
  \textcolor{black}{black}
  \textcolor{white}{white}
  \textcolor{red}{red}
  \textcolor{blue}{blue}
  \textcolor{green}{green}
}
\colorbox{yellow}{
  \textcolor{black}{black}
  \textcolor{white}{white}
  \textcolor{red}{red}
  \textcolor{blue}{blue}
  \textcolor{green}{green}
}
\end{document}
