# Change the background color of a frame in Beamer

How can I change the background color of one frame in my Beamer document? I tried doing

\begin{frame}
\setbeamercolor{background canvas}{bg=violet}
% frame contents here
\end{frame}


but it seemed to have no effect.

Anyone know what the problem is?

-

To keep the effect of the color change local, you could use curly braces around the frame and that command, or \begingroup ... \endgroup.
Put the \setbeamercolorcommand outside the frame. This will change the background colour for every subsequent frame. If you want to just change that slide, you can surround the frame and the command in {}