This is typical of chronic venous stasis.
See your doctor immediately.
Exercise, compression stockings, these are the treatments.
Clot must be ruled out, particularly if one leg.
There are other causes of rash as well...allergy, autoimmune disease, etc.
You must have a diagnosis to treat.
You also might have gout, another possibility.
OK, so that is an initial answer….
Please use reply to expert if you have further questions. When you are ready, please click a positive rating [hopefully excellent]. If you forgot something, come back. I am here daily.