Any small molecule that can elicit an immune response only when attached to a large carrier such as a protein.