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: Darken (reduce the luminance) of this color.
  
  Args:
      amount (float) :
          Amount to reduce the luminance by (clamped above zero)
  
  Returns:
      :class:`~bokeh.colors.HSL`
docstr_tok: ["Darken","(","reduce","the","luminance",")","of","this","color",".","Args",":","amount","(","float",")",":","Amount","to","reduce","the","luminance","by","(","clamped","above","zero",")","Returns",":",":","class",":","`","~bokeh.colors.HSL","`"]
code: def darken(self, amount: float) -> HSL:
      """Darken (reduce the luminance) of this color.
  
      Args:
          amount (float) :
              Amount to reduce the luminance by (clamped above zero)
  
      Returns:
          :class:`~bokeh.colors.HSL`
  
      """
      return self.lighten(-amount)
  
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 3 for calling the HSL obj's underlying member method code with example usage: obj.darken(amount) and returns: self