The invention provides a novel class of pyrimidine derivatives, pharmaceutical compositions comprising such compounds and methods of using such compounds to treat or prevent diseases or disorders associated with abnormal or deregulated kinase activity, particularly diseases or disorders that involve abnormal activation of c-kit, PDGFRα and PDGFRβ kinases.