The color struct provides three methods: GetHue, GetSaturation and GetBrightness.
Bob Powell wrote an interesting piece on this several years ago.
Bizarre historical note -- "HSL" (and the related "HSV") are one of the many things originating from Xerox's Palo Alto Research Center (PARC) in the 70's, courtesy of Alvy Ray Smith.