Once the onion has been cut open, an enzyme acts as a natural pest repellent. This may be how onion juice and scent cling to your skin. Because of the long shelf life this enzyme is designed for, it will stick around on your hands for quite some time. After chopping an onion, it's best to immediately wash your hands with soap.