Minecraft wiki entry for Pickaxe, associated text: A red background indicates that the block cannot be harvested with that type of pickaxe.
A yellow background indicates that the block cannot be harvested with that type of pickaxe, but still drops something.
A green background indicates that the block can be harvested with that type of pickaxe.