Thanks for your reply! I don't think there was a rainbow inside it. More like some sort of object. Like a key or something... I checked the MLP movie from 1986 but I couldn't find that scene though...
I apologize if this is too little information, but here we go.
I'm looking for a cartoon from the early/mid 80s probably. The only part I can remember is that someone pulled one or several of the spots (on a big, red mushroom) up and it turned out to be a lid. And underneath it something was...