If you want to get back to your favorite color quickly, there's a save and load feature as well.
Simply source in Maya to use.
Download the Mel Script Here: jgViewportBackgroundColor.mel
//
int $toggled_color ;
if($toggled_color == 0)
{
displayRGBColor "background" 1. 1. 1. ;
$toggled_color = 1 ;
}
else
{
displayRGBColor "background" 0.688 0.688 0.688 ;
$toggled_color = 0 ;
}
//