No it was not a random color. According to Susannah Locke at Scienceline, surgeons in particular benefit from the colors green or blue as opposed to white for two reasons:
First, looking at blue or green can refresh a doctor’s vision of red things, including the bloody innards of a patient during surgery. The brain interprets colors relative to each other. If a surgeon stares at something that’s red and pink for too long, he becomes desensitized to it.