Glowing logos in the windshield for popular rideshare companies Lyft and Uber help passengers identify what vehicle to get into, but Kansas Highway Patrol troopers say the lights are illegal.

Christopher Hockett, a Wichita rideshare driver, says he did not realize he was violating the law with his green Uber LED light.

“I didn’t know what I was getting pulled over for,” said Hockett.

In a video from his dash cam, you can hear an officer explain that the lights in the window are illegal.

According to Kansas statute 8-1729, the only lights drivers can have on their vehicles that are visible from the road are white, yellow, amber, or red in color.

“Flashing lights are prohibited,” the statute says.

Lyft Amp, a device the company supplies, glows pink and purple. It changes color as the driver approaches their passenger.

(Read more: KWCH News)