import PIL.ImageGrab rgb = PIL.ImageGrab.grab().load()[x,y]

Read more of this post