Getting color of one onscreen pixel

Is there any way to get the color shown on a particular pixel on the screen?
Ive read that there was an old osax for OS 9 that could do that, but the feature wasnt ported to OS X.

I can take a screenshot and process that in PHP, but tht seems like a bit of a hassle if there is an easier way.