The dark orange colour indicates that it is selected but is not the active object. It is the active object that you can toggle between object and edit mode
Add two cubes in your scene, select both of them and you’ll see one is dark orange and the other light orange. The light orange object is the active object and is the one that will go into edit mode