pct2rgb.py [-of format] [-b band] source_file dest_file
This utility will convert a pseudocolor band on the input file into an output RGB file of the desired format.
NOTE: rgb2pct.py is a Python script, and will only work if GDAL was built with Python support.