Yes, you can tan when there is UV light present. The tanning process depends mainly on UVA and UVB ultraviolet light. UVA light oxidizes existing melanin in the skin, giving an immediate darkening effect, while UVB light stimulates the production of new melanin for a longer-lasting tan. Natural sunlight and tanning beds provide these UV rays, with tanning beds typically emitting higher UVA levels for faster tanning. However, tanning occurs at various UV levels, with the ideal tanning UV index range being moderate (around 3-5), where the sun's rays stimulate melanin without causing severe damage. Higher UV levels can cause faster tanning but also increase the risk of skin damage, sunburn, and skin cancer, so exposure time and protection need to be managed carefully.