The scarf is woven using optical fibres, and has a sensor to figure out the colour of the clothes you're wearing.
The thing triggers LEDs which then illuminate the scarf accordingly.
Presumably if you're wearing a black suit the thing doesn't light up at all. Nikkei.net said that the boffins at Keio University have also designed a shirt which will change colour depending on body temperature. µ
Sign up for INQbot – a weekly roundup of the best from the INQ