That would be cool. As long as you don't put enough paint on the grills to block the holes that the audio passes through, you should have no issues at all. In fact, most speakers come with covers to allow for painting of the grills, and give specific instructions on how to paint the grills.
All that matters is keeping the holes open.