Provided are compounds useful as inhibitors of one or more histone demethylases, such as KDM5. The invention also provides pharmaceutically acceptable compositions comprising compounds of the present invention and methods of using the present composition in the treatment of various disorders.