What am I?

What is black when you buy it, red when you use it, and gray when you throw it away?