The color object that you want to delete is referenced by a Pixmap object.
You must delete the pixmap object to which it refers before you can delete this color object.