UK and France are still the #6 and $5 economies respectively, larger than that of India, and higher per capita GDP than #3 economy, Japan.
They command huge political influence compared to larger economies such as Japan due to their influence over commonwealth, former colonies, European Union, and international organizations such as Olympics (founding counties), UN (founding nations), IMF, World Bank, ect.
They also process huge soft power due to their rich history, and their prominent position as leaders of the western civilization. France had 83 million visitors, the largest of any country compared to 6.8 million for India. Developing countries look up to France and UK because of their development aid offer, top ranked universities, high quality of life, ect.
In the military sphere, they are both nuclear powers with a blue water navy (albeit smaller than it should be). They have the 5th and 6th largest military expenditure in the world (USA 600, China 122, Russia 68, Saudi 60, UK 57, France 52, Japan 51, Germany 44, India 36), and part of the most powerful military alliance in the world.
UK and France are still certified major powers, a position that many would argue India has yet arrive (India is considered a middle power). The only way for them to lose their major power status is if they become too much of a dog of the USA in the future, and lack any legitimate independent domestic and foreign policy.