A hairpin, hairclip or hair ornament that looks like a pumpkin. Can be attached to the hair or resting on top of a hat.
If it is designed like a jack-o'-lantern, consider adding the jack-o'-lantern hair ornament tag.