Original: While the snakes are recognized as falling phylogenetically within the anguimorph lizards from which they evolved, the sphenodonts are the sister group to the squamates, the larger monophyletic group, which includes both the lizards and the snakes.
Simplified: These colors would be highly visible to predators, so are often hidden on the underside or between scales and only revealed when necessary.