Set foreground and optional background colour for PRINT / INPUT text and for graphics when a colour argument is omitted. HDMI text uses the nearest of the 16 ANSI colours (RGB(RED) is red).
COLOUR fg [, bg] COLOR fg [, bg]
fg - foreground RGB integer or named colour bg - background (optional)
Colours are RGB integers: RGB(r,g,b), RGB(RED), or RGB(“RED”). Integers 0 to 31 are the IBM PC palette (CGA/VGA): 0-7 normal, 8-15 bright, 16-31 repeat 0-15. COLOUR 4 is the same as COLOUR RED.
To read a colour from the active editor theme, use THEME.
Named colours: BLACK BLUE GREEN CYAN RED MAGENTA BROWN LIGHTGRAY DARKGRAY LIGHTBLUE LIGHTGREEN LIGHTCYAN LIGHTRED LIGHTMAGENTA YELLOW WHITE, plus ORANGE PINK GOLD SALMON GRAY GREY. LIGHT* names are the bright IBM set.
Example:
COLOUR RGB(RED)
COLOR LIGHTRED, BLACK
COLOUR 12
Source: docs/help/colour.txt inmmcore. On the computer, typeHELP COLOUR.