People of African heritage also use the n-word when referring to each other. If you use that word you would rightly be called a racist bigot.
You very well know that the term you just used is a derogatory one. It was used throughout my youth and into my young adulthood by racist pigs. You can try and excuse it. It doesn't change how you used it, and that it's a derogatory expression.