It's not really the books so much as one of those rando things Rowling said to gain woke points. In the books, Hermione regularly turns pink with embarrassment or white with fear, reactions that are unlikely to be noticeable on a black girl, so the text generally goes against it.