color-gray-p

color-gray-p is a built-in function in `C source code'.

(color-gray-p COLOR &optional FRAME)

Return non-nil if COLOR is a shade of gray (or white or black).
FRAME specifies the frame and thus the display for interpreting COLOR.
If FRAME is nil or omitted, use the selected frame.