Upon exposure to UVB rays, the melanocytes and basal cells present in the epidermal layer produce melanin, a pigment that gives the skin its color tone. The UVB rays will cause the formation of freckles and dark spots, that are symptoms of photoaging or aging due to light radiation.