when you but a shield in your left hand and you block a mob with it,the shield changes to some random color.for example:if you have a black shield and you block a zombie it will change to red.if you block again it will change color again.
Steps to repeat:
1.obtain a shield in survival mode
2.put shield in left hand slot
3.block a hit from a mob