Mountain Lilac or Spiny ceanothus
Ceanothus spinosus
These can be white to blue to purple to lavender. Grows pretty much everywhere in the chaparral mountains. When it's young and encroaching the trails, the bark is green and the spines are terrible to walk through.