What is happening to my daughter leg!?

Lexie

So a few mins ago I was feeding my daughter and putting her to sleep and i looked down

And saw her leg was a differnt color and was red and alittle purple and her foot got swollen to. It scared me . Her leg is now back to normal color but her foot is still swollen what could this be! This is freaking me out.