It's not about the color of the carpet, but the fact that someone is called in to speak to a supervisor or someone in authority. The image is that they are being called to the "carpet" (figuratively, of course), where they will be criticized for something they've done wrong.
There's no idiom that specifically uses the color of the carpet.