NetLogo 7.0.0-beta2:

palette:hue-of

palette:hue-of color

Reports a value in the range 0 to 360 representing the hue component in HSB color space of the given NL, RGB or RGBA color.

Example:

show palette:hue-of red ;; 3.103

Take me to the full Palette Extension Dictionary