Is it ok to have a black bathroom vanity with brown wall trim?
yes, to each his or her own tastes
beauty is in the eye of the beholder if the combo works for you then enjoy
If you like it that is all that matters. You did not say what the over all colors were in the bathroom. ()