On the left: UV-B radiation penetrates the epidermis, through the cells of the germinal layer to the melanocytes (pigment-producing cells), the melanocytes produces melanin.
On the right: UV-A radiation penetrates the Stratum corneum and can't permeate the melanin.