How does a king snake camouflage its self to match their surroundings?

they do by there back color/pattern as many people think snakes are NOT color blind so they know there surroundings