[Tex/LaTex] Adding text color in beamer

beamercolor

I am trying to use \usepackage[usenames, dvipsnames]{color} package given here .I am using \color{RubineRed}{NameName} to change the color of the text NameName.But, the color of the text doesn't change.

\documentclass{beamer}
\usepackage{xcolor,colortbl}
\usepackage[usenames, dvipsnames]{color}
\definecolor{Gray}{gray}{0.85}
\definecolor{LightCyan}{rgb}{0.88,1,1}
\newcolumntype{a}{>{\columncolor{Gray}}c}
\newcolumntype{b}{>{\columncolor{white}}c}
\begin{document}
\begin{frame}{Title}
\resizebox{\textwidth}{!}{%
  \begin{tabular}{|a|b|a|b|a|b|}
  \hline
  \rowcolor{LightCyan}
  Name & Name&Name&NameName&NameName\\
  \hline
  \color{RubineRed}{NameName}&-&-&-&-\\
  NameName&NameName B &NameName B &- &NameName B\\
  NameName&NameName A&NameName A&NameName A&NameName A\\
  NameName&NameName B &NameName &-&- \\
  NameName&NameName C&NameName C&NameName C&-\\
  NameName&-&NameName&-&-\\
  NameName&-&NameName&-&\\
  \hline
  \end{tabular}
} % end of scope of "\resizebox"  directive
\end{frame}
\end{document}

Can someone help me to understand what is wrong?

Best Answer

You are overdoing with color packages. Pass the options through the beamer options:

\documentclass[xcolor={table,dvipsnames,usenames}]{beamer}
\definecolor{Gray}{gray}{0.85}
\definecolor{LightCyan}{rgb}{0.88,1,1}
\newcolumntype{a}{>{\columncolor{Gray}}c}
\newcolumntype{b}{>{\columncolor{white}}c}
\begin{document}
\begin{frame}{Title}
\resizebox{\textwidth}{!}{%
  \begin{tabular}{|a|b|a|b|a|b|}
  \hline
  \rowcolor{LightCyan}
  Name & Name&Name&NameName&NameName\\
  \hline
  \color{RubineRed}{NameName}&-&-&-&-\\
  NameName&NameName B &NameName B &- &NameName B\\
  NameName&NameName A&NameName A&NameName A&NameName A\\
  NameName&NameName B &NameName &-&- \\
  NameName&NameName C&NameName C&NameName C&-\\
  NameName&-&NameName&-&-\\
  NameName&-&NameName&-&\\
  \hline
  \end{tabular}
} % end of scope of "\resizebox"  directive
\end{frame}
\end{document}

enter image description here