The environment {NiceTabular}
of nicematrix
has tools in order to color cells, rows and columns in a convenient way.
Morevorer, with nicematrix
you won't have the thin white lines you see in some PDF viewers.
\documentclass{article}
\usepackage{nicematrix}
\begin{document}
\begin{NiceTabular}{cc}
\CodeBefore
\rowcolor{gray!50}{1}
\rowcolors{2}{gray!25}{white}
\Body
Table head & Table head\\
Some values & Some values\\
Some values & Some values\\
Some values & Some values\\
Some values & Some values\\
\end{NiceTabular}
\end{document}
You need several compilations (because nicematrix
uses PGF/Tikz nodes under the hood).
You can also color the rows with any cycle of colors:
\documentclass{article}
\usepackage{nicematrix}
\begin{document}
\begin{NiceTabular}{c}
\CodeBefore
\rowlistcolors{1}{red!15,blue!15,green!15}
\Body
Mathilde \\
Pierre \\
Paul \\
Juliette \\
Jacques \\
Antoine \\
Emmanuelle \\
\end{NiceTabular}
\end{document}