We need to remember that there are two types of suns’ rays we are exposed to – UVA and UVB. UltraViolet B or UVB radiations can burn the top layers of skin or the epidermis, leading to sunburns. UltraViolet A or UVA rays penetrate deeper into the skin and trigger the melanocytes to produce excess melanin that ultimately leads to pigmentation.