IS WEARING BLACK TO A WEDDING OKAY?

so I have to attend this wedding tomorrow and I literally don’t have nothing to wear but a black maxi dress. Some people are telling me that you shouldn’t wear black to a wedding, but I feel like I see people wear black? My dress is a solid black maxi dress? I don’t want to dress too too formal for this wedding nor do I wanna look like I dressed too down for this wedding.

What do y’all guys think. Should I wear the maxi dress or go find another one in literally less than a day?

ALSO I KNOW THIS DONT HAVE ANYTHING TO DO WITH TTC BUT I DIDNT KNOW WHERE TO INSERT IT AS A CATEGORY