The San Francisco 49ers have acquired wide receiver Keenan Allen from the Indianapolis Colts.