Melasma is a type of hyperpigmentation and is often caused by hormonal changes. On the other hand, hyperpigmentation is an umbrella term. It refers to a condition in which the skin may darken due to factors like acne, sun damage, eczema, or any other skin condition.