Regulations of AR-15s are left to the different states.
https://gun.laws.com/ar-15
<snip>
Regulation of the AR-15
There is not federal law that controls the use of the rifle. The Violent Crime Control and Law Enforcement Act of 1994, which incorporated the Assault Weapons Ban of 1994, banned the manufacturing and importing of the rifle along with other assault rifles, but the ban ended in 2004. The regulation of the rifle is now left up to the states, and several state regulations are described below:
California
Penal Code section 12276 subdivisions (e) and (f) made it unlawful to sell an AK or AR-15 series rifle after August 16, 2000 in the state of California. Certain features of the weapon may be removed to declassify it as an assault weapon, but its still illegal to sell in California. It is legal to possess the weapon in California if it was possessed before December 31, 1999 and registered with the state before December 31, 2000.
People who owned the rifle were required to register the weapon with the Department of Justice by January 23, 2001. It is illegal to pawn the rifle or inherit the rifle in California as well. Additionally, you cannot leave the assault rifle at a gunsmith unless they hold a California Assault Weapons permit.
Colorado
In January of 2007, the Denver City Council passed a law that modified the citys assault weapon ban. It is legal to own an AR-15 or other assault rifles if they do not contain a magazine with 21 or more rounds.
Other states have regulations for the assault rifle as well.