In an larger LaTeX document there are often only some pages with color content (mainly figures) and the remaining ones are only black and white.
Because printing costs for color pages are much higher than for black and white it would be good to be able to extract all pages with color and print them separately. The first step for this is to be able to detect if a page contains color or not. This could be in a form of an text list of page number suitable to be read by a PDF page extraction script (using e.g. pdftk).
A simple solution sufficient for many people would be to detect all pages which contain a figure and assume that only these have color. However, a general solution would be nice. Only color elements which are printed should be taken into account, while e.g. the color frames around link by hyperref should not. It is OK that the solution would disable these for the detection.

pdftoppmand then ImageMagic to check the colors should be easy to do. Trying to hook into\coloryou'll face enormous problems. To name two: (a) you need to identify colors which are really gray. (b) what happens with pages where colored text has been broken to by a page break? They won't contain a color change (to black at most). And then you haven't even covered images. – Stephan Lehmke Apr 26 '12 at 21:00identifytools seems to be suitable. It converts PDF pages to raster images and seems to select the required color space itself (e.g.GrayorRGB). My first try:for N in `seq 1 $PAGES`; do echo -n "$N: "; identify -format "%[colorspace]" $FILE.pdf[$((N-1))]; done. Prints eitherGrayorRGBfor each page depending if there are colors on it. Ignoreshyperrefcolor borders and possible other PDF annotations. – Martin Scharrer♦ Apr 26 '12 at 21:29