The same kind of proteins your eyes use to sense light are in your skin to trigger tanning.