class_docstr: Represent colors by specifying their Hue, Saturation, and lightness.
  
  Alpha values may also optionally be provided. Otherwise, alpha values
  default to 1.
  
  .. warning::
      HSL is deprecated as of Bokeh 2.3.1 and will be removed in a future
      release. Use RGB or named colors instead.
class_docstr_tok: ["Represent","colors","by","specifying","their","Hue",",","Saturation",",","and","lightness",".","Alpha","values","may","also","optionally","be","provided",".","Otherwise",",","alpha","values","default","to","1",".","..","warning",":",":","HSL","is","deprecated","as","of","Bokeh","2.3.1","and","will","be","removed","in","a","future","release",".","Use","RGB","or","named","colors","instead","."]
docstr: Generate the CSS representation of this HSL color.
  
  Returns:
      str, ``"hsl(...)"`` or ``"hsla(...)"``
docstr_tok: ["Generate","the","CSS","representation","of","this","HSL","color",".","Returns",":","str",",","``","``","hsl","(","...",")","''","``","or","``","``","hsla","(","...",")","''","``"]
code: def to_css(self) -> str:
      """Generate the CSS representation of this HSL color.
  
      Returns:
          str, ``"hsl(...)"`` or ``"hsla(...)"``
  
      """
      if self.a == 1.0:
          return f"hsl({self.h}, {self.s*100}%, {self.l*100}%)"
      else:
          return (
              f"hsla({self.h}, {self.s*100}%, {self.l*100}%, {self.a})"
          )
  
imports: from __future__ import annotations
  import logging
  import colorsys
  from abc import ABCMeta, abstractmethod
  from math import sqrt
  from re import match
  from typing import TYPE_CHECKING, Union
  from ..core.serialization import AnyRep, Serializable, Serializer
  from ..util.deprecation import deprecated
label_desc: Use image node_id 6 for calling the HSL obj's underlying member method code with example usage: obj.to_css() and returns: str, self, str, unknown, str, unknown, str, str, self, str, unknown, str, unknown, str, self, str