a) Excess production of pigments primarily melanin. This is usually only an aesthetic issue and not associated with any other medical problems.
b) Medical problems like genetic issues, hormonal problems, some medications, smoking, chronic lung infections and in some rare cases due to malignancies.