Version 4.02 now introduces a cool new feature for the "Debug" script command. If you debug "colours" or "colours256" (new feature), then the actual colours are shown, like this:

Also, the Lua-compatible colour numbers (a straight decimal number) is now shown in the RH column.