HMB-45 targets a protein called gp100, which is present in premelanosomes, the organelles involved in the synthesis of melanin. When used in IHC, HMB-45 binds to gp100, allowing pathologists to visualize melanocytic cells under the microscope. This binding is often visualized using chromogenic substrates that produce a color change, making it easier to identify positive cells.