How can I use a Beamer Color, lets say the one given by \usebeamercolor[bg]{palette primary} as color name in order to be used in a \rowcolors command for example.
In the following MWE I would like to use something like beamercolor[bg]{palette primary} instead of lightgray in \rowcolors{1}{}{lightgray}:
\documentclass[xcolor=table]{beamer}
\usetheme{Warsaw}
\usecolortheme{seahorse}
\definecolor{lightgray}{gray}{0.9}
\begin{document}
\begin{frame}
\rowcolors{1}{}{lightgray}
\begin{tabular}{r|rrrrr}
\hline
& 1 & 2 & 3 & 4 & 5 \
\hline
1 & 2.36 & 1.08 & -0.49 & -0.82 & -0.65 \
2 & -0.68 & -1.13 & -0.42 & -0.72 & 1.51 \
3 & -1.00 & 0.02 & -0.54 & 0.31 & 1.28 \
\hline
\end{tabular}
\end{frame}
\end{document}

\usebeamercolor[..]{..}command can be done in preambule (before the\begin{document}and so no need to put it between brackets{}. Thanks again ! – zetyty Feb 11 '22 at 15:13