Can I dye my hair if I have excessive dandruff?

The chemicals in hair dyes may irritate the scalp leading to contact dermatitis, which in addition to causing excessive dandruff may also lead to hair loss, so hair colouring is not recommended.