Hopefully bruised but check for something wrapped around the upper leg that might be cutting off circulation. Necrosis also possible: cold, stinky, no feeling, bird will be sick. A broken leg will be non weight bearing. A bruised leg will be painful but used, though tenderly. Nerve damage presents as No feeling or unable to move leg (not an issue here, just fyi). If bruised the color will change from red/purple/black to green/yellow over a week or more so don’t panic. A bruised bone can take weeks to heal (if you’ve ever banged your shin you’ll understand). If something is wrapped around the leg, remove and watch to see how much damage there is. Bruise just watch. Broken leg needs deep bedding, minimal movement, easy access to feed and water, protection from other birds for 3-6 weeks. Necrotic leg has poor prognosis and culling should be considered.