LilyPond supports named colors through x11-color
, the corresponding color names can be found in the file scm/x11-color.scm. Using scheme, one can easily create a lilypond file displaying (all) supported color names with an example of each color automatically.
The way to do this is loading the scolor.scm file and then creating a \markup for each color definition.
This snippet is obsolete in version 2.25 since the documentation now contains a list of colors that also displays a square with each color. See List of colors.