What to wear to a funeral?

Jarika
I haven't been to a funeral since 2013 and now I have two to go this week. One today and another on Wednesday. I have no idea what to wear and besides black leggings, I have nothing else that's black to wear. What is acceptable to wear? Do I have to wear black? If I do have to wear black would the leggings and a nice top be okay? Or should I try to find something else in my closest?