In histology, colloidal gold is primarily employed as a labeling agent in immunohistochemistry and electron microscopy. The gold particles can be conjugated with antibodies or other molecules, allowing for the precise localization of specific proteins, antigens, or cellular structures within tissue samples.