NetLogo 7.0.0-beta2:

palette:R

palette:R

Reports a number in the range 0 to 255 that represents the red of an agent’s color or pcolor.

Example:

crt 1 [set color red]
[palette:R] of turtle 0 ;; 215

Take me to the full Palette Extension Dictionary