def hsl_to_rgb(self, h, s, l):
h = h % <NUM_LIT:1.0><EOL>s = min(max(s, <NUM_LIT:0.0>), <NUM_LIT:1.0>)<EOL>l = min(max(l, <NUM_LIT:0.0>), <NUM_LIT:1.0>)<EOL>if l <= <NUM_LIT:0.5>:<EOL><INDENT>m2 = l*(s + <NUM_LIT:1.0>)<EOL><DEDENT>else:<EOL><INDENT>m2 = l + s - l*s<EOL><DEDENT>m1 = l*<NUM_LIT> - m2<EOL>r = self._hue_to_rgb(m1, m2, h + <NUM_LIT:1.0>/<NUM_LIT>)<EOL>g = self._hue_to_rgb(m1, m2, h)<EOL>b = self._hue_to_rgb(m1, m2, h - <NUM_LIT:1.0>/<NUM_LIT>)<EOL>r **= self.gamma<EOL>g **= self.gamma<EOL>b **= self.gamma<EOL>return (r, g, b)<EOL>
Convert a color from HSL color-model to RGB.

        See also:
        - http://www.w3.org/TR/css3-color/#hsl-color