With thousands of dispensaries and few problems getting a medical recommendation, it can sometimes feel like cannabis is already legal in California. A new report from a Drug Policy Alliance, however, reveals that’s hardly the case.

According to the advocacy group, law enforcement in the state made nearly half a million cannabis related arrests over the last decade. Although arrests fell last year, some patterns still exist.

Perhaps most worrying is the significant racial disparity in arrest rates. Despite similar use rates across groups, authorities disproportionately arrested black and Latino people. The DPA report found that black people are twice as likely than whits to be arrested for cannabis misdemeanors and barely five times more likely to be arrested on felony charges.

“While many people believe that marijuana is essentially legal in California, data show us that thousands continue to be arrested annually for marijuana activities,” said DPA staff attorney Jolene Forman. “These arrests fall disproportionately on black and Latino Californians. The only way to begin to repair these parities is to move marijuana into a fully regulated market and to reduce or eliminate criminal prohibitions for minor marijuana activities.”

The statistics might come as a surprise given California’s global reputation for cannabis tolerance. In 1996 the state become the first in the U.S. to legalize cannabis for medical use. Lawmakers further criminal penalties for cannabis in 2011, making possession of up to an ounce of cannabis for personal use a civil infraction rather than misdemeanor.

The change led to an 86& decrease in misdemeanors, but felony arrests remained relatively stable at roughly 14,000 per year. In 2015 that number fell by a third. The report, however, doesn’t attempt to explain why.

Unfortunately, youth under 18 now account for the majority of cannabis misdemeanor arrests. Prior to 2011, when possession was decriminalized, minors accounted for only a quarter of misdemeanor cannabis arrests. As of 2015, youth account for two-thirds of misdemeanor cannabis arrests.

California will have an opportunity to legalize cannabis for recreational use this fall. Proposition 64, the Adult Use of Marijuana Act, contains sentencing reforms that would reduce or eliminate most criminal penalties around cannabis, Another load of good news is that these reductions would apply retroactively to past offenses.