Compounds of Formulae I, II or III, and pharmaceutically acceptable salts thereof, are useful as CDK inhibitors.