XQueryColor(display, colormap, def_in_out)
      Display *display;
      Colormap colormap;
      XColor *def_in_out;
| display | Specifies the connection to the X server. | 
| colormap | Specifies the colormap. | 
| def_in_out | Specifies and returns the RGB values for the pixel specified in the structure. | 
XQueryColor() can generate BadColor and BadValue errors.
| BadColor | A value for a Colormap argument does not name a defined Colormap. | 
| BadValue | Some numeric value falls outside the range of values accepted by the request. Unless a specific range is specified for an argument, the full range defined by the argument's type is accepted. Any argument defined as a set of alternatives can generate this error. |