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: Args:
      h (int) :
          The Hue, in [0, 360]
  
      s (int) :
          The Saturation, in [0, 1]
  
      l (int) :
          The lightness, in [0, 1]
  
      a (float, optional) :
          An alpha value for this color in [0, 1] (default: 1.0)
docstr_tok: ["Args",":","h","(","int",")",":","The","Hue",",","in","[","0",",","360","]","s","(","int",")",":","The","Saturation",",","in","[","0",",","1","]","l","(","int",")",":","The","lightness",",","in","[","0",",","1","]","a","(","float",",","optional",")",":","An","alpha","value","for","this","color","in","[","0",",","1","]","(","default",":","1.0",")"]
code: def __init__(
      self, h: float, s: float, l: float, a: float = 1.0
  ) -> None:
      """
  
      Args:
          h (int) :
              The Hue, in [0, 360]
  
          s (int) :
              The Saturation, in [0, 1]
  
          l (int) :
              The lightness, in [0, 1]
  
          a (float, optional) :
              An alpha value for this color in [0, 1] (default: 1.0)
  
      """
      deprecated((2, 3, 1), "HSL()", "RGB() or named colors")
      self.h = h
      self.s = s
      self.l = l
      self.a = 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 1 to create a new HSL object from inherited base classes: Color with example: obj = HSL(h, s, l, a)