Traffic lights work in a set sequence, so even if you can't differentiate between the colours easily you (should) know the order for signalling.
When I joined the BBC it was mandatory to pass a colour blindness test, partly for electrical safety and partly for rigging circuits in dim lighting...