Retailers like Amazon and Walmart are getting cease-and-desist letters from the New York attorney general over the sales of toy guns. 

The letter stated that under New York law, the toys cannot be sold in stores or online unless there is an orange stripe on the barrel of the gun.

“When toy guns are mistaken for real guns, there can be tragic consequences,” Attorney General Eric Schneiderman wrote. “New York State law is clear: retailers cannot put children and law enforcement at risk by selling toy guns that are virtually indistinguishable from the real thing.”

Investigators were able to purchase these illegal toy guns at a K-Mart in upstate New York and ordered others online. The state points out that the toys are marketed as "realistic looking."

The issue has come to the forefront following the shooting death of a 12-year-old in Cleveland. The boy, Tamir Rice, was allegedly holding a black toy gun that the officer mistook for a real one.

Police Chief to Residents: Invite Cops in to Search Your Home for Guns

New Gun Law Ends Up Dismantling a Museum's WWII Exhibit

Sign at TX School: 'Teachers Armed, Can Use Any Force Necessary'