tty-color-by-index

tty-color-by-index is a compiled Lisp function in `tty-colors.el'.

(tty-color-by-index IDX &optional FRAME)

Given a numeric index of a tty color, return its description.

FRAME, if unspecified or nil, defaults to the selected frame.
Value is a list of the form (NAME INDEX R G B).