A lot of times the things you like will be problematic in some way. The important thing is that you know it’s problematic and in the future, you will make informed decisions about those kinds of things. If it’s something you care deeply about, is exceptionally harmful to people, etc. then I’d expect you’d make a meaningful impact about it.
Is the label that your fragrances belong to racist? Yes. Does wearing the fragrance on a night out directly impact the people affected by said racism? Arguably no. It was a gift from the past so throwing out your perfume now wouldn’t do anything to stop the label and the harmful stereotypes. However, if I were in your position, if someone were to ask about the perfume, I’d make it clear that they shouldn’t support the label, I don’t support it, and there are suitable other fragrances that don’t contain harmful stereotypes. What does everyone else think?