Safranin stains lignin regardless of whether cellulose is present. It is a basic red stain which is mainly used for differential staining.
Thus, the correct answer is option B.