A medical condition marked by an abnormal accumulation of melanin, typically in the skin, resulting in darkened patches or spots.