def hsl(hue, saturation = nil, lightness = nil)
      if saturation.nil?
        return unquoted_string("hsl(#{hue})") if var?(hue)
        raise ArgumentError.new("wrong number of arguments (1 for 3)")
      elsif lightness.nil?
        return unquoted_string("hsl(#{hue}, #{saturation})") if var?(hue) || var?(saturation)
        raise ArgumentError.new("wrong number of arguments (2 for 3)")
      end

      if special_number?(hue) || special_number?(saturation) || special_number?(lightness)
        unquoted_string("hsl(#{hue}, #{saturation}, #{lightness})")
      else
        hsla(hue, saturation, lightness, number(1))
      end
    end
def hsl(hue, saturation = nil, lightness = nil)
      if saturation.nil?
        return unquoted_string("hsl(#{hue})") if var?(hue)
        raise ArgumentError.new("wrong number of arguments (1 for 3)")
      elsif lightness.nil?
        return unquoted_string("hsl(#{hue}, #{saturation})") if var?(hue) || var?(saturation)
        raise ArgumentError.new("wrong number of arguments (2 for 3)")
      end

      if special_number?(hue) || special_number?(saturation) || special_number?(lightness)
        unquoted_string("hsl(#{hue}, #{saturation}, #{lightness})")
      else
        hsla(hue, saturation, lightness, number(1))
      end
    end
Creates a {Sass::Script::Value::Color Color} from hue, saturation, and
 lightness values. Uses the algorithm from the [CSS3 spec][].

 [CSS3 spec]: http://www.w3.org/TR/css3-color/#hsl-color

 @see #hsla
 @overload hsl($hue, $saturation, $lightness)
   @param $hue [Sass::Script::Value::Number] The hue of the color. Should be
     between 0 and 360 degrees, inclusive
   @param $saturation [Sass::Script::Value::Number] The saturation of the
     color. Must be between `0%` and `100%`, inclusive
   @param $lightness [Sass::Script::Value::Number] The lightness of the
     color. Must be between `0%` and `100%`, inclusive
 @return [Sass::Script::Value::Color]
 @raise [ArgumentError] if `$saturation` or `$lightness` are out of bounds
   or any parameter is the wrong type