A gray card is a tool used to set custom white balance and ensure accurate color representation in a photograph.