There are many ways to show that someone is badass, one of which is to give them a scarf. It can be of any color, although it's frequently red, yellow, or black. It seems to almost always be flowing in the wind. May possibly be a Shout-Out to Kamen Rider, one of the earlier uses of the trope and is quite iconic in Japan.