Use xcolor for colored tables in a beamer slide
It's easy:
\documentclass[xcolor=table]{beamer}
or
\documentclass[table]{beamer}
You can also use:
\PassOptionsToPackage{table}{xcolor}
\documentclass{beamer}
You can also pass it as follows:
\documentclass[xcolor=table]{beamer}