NetLogo 7.0.0-beta2:

palette:brightness-of

palette:brightness-of color

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

Example:

show palette:brightness-of red ;; 84.314

Take me to the full Palette Extension Dictionary