Legumain has been identified as a target for diagnosis and treatment of associated cancers. Therefore, real-time imaging of legumain activity in vivo is helpful in diagnosing and evaluating therapeutic efficacy of associated cancers. Fluorescent/photoacoustic (FL/PA) dual-modal imaging developed rapidly because of its good sensitivity and spatial resolution. As far as we know, a tumor-targeted probe for FL/PA imaging of legumain activity in vivo has not been reported. Hence, we intended to develop a tumor-targeted hemicyanine (HCy) probe (HCy-AAN-Bio) for FL/PA imaging of legumain in vivo. The control probe HCy-AAN does not have tumor-targeting ability. Legumain can specifically cleave HCy-AAN-Bio or HCy-AAN with the generation of FL/PA signal while more HCy-AAN-Bio could be recognized by legumain than HCy-AAN with higher sensitivity in vitro. Due to the tumor-targeting ability, HCy-AAN-Bio could image 4T1 cells with an additional 1.3-fold FL enhancement and 1.9-fold PA enhancement than HCy-AAN. In addition, HCy-AAN-Bio could image legumain activity in vivo with an additional 1.5-fold FL enhancement and 1.9-fold PA enhancement than HCy-AAN. We expected that HCy-AAN-Bio will be a powerful tool for early diagnosis of associated cancer.