Melanin is capable of transforming ultraviolet light energy into heat in a process known as “ultrafast internal conversion”; more than 99.9% of the absorbed UV radiation is transformed from potentially genotoxic (DNA-damaging) ultraviolet light into harmless heat.
— Read on wakeup-world.com/2012/03/21/is-skin-pigment-melanin-a-light-harvesting-substance/