A tanning lotion or a bed tanning lotion works with the help of UV rays. The UV rays activate the skin’s color pigments (melanin) which creates a darker color.