The present invention relates to substituted pyrimidines of formula I, their preparation, pharmaceutical compositions containing them and their use as inhibitors of cyclin-dependent kinases (CDKs) and hence their use in the treatment of proliferative disorders and/or viral disorders.