Broad-band spectrophotometry of the hot Jupiter HAT-P-12b from the near-UV to the near-IR