class_docstr: A base class for representing color objects.
  
      
class_docstr_tok: ["A","base","class","for","representing","color","objects","."]
docstr: Create a new color by converting from an HSL color.
  
  *Subclasses must implement this method.*
  
  Args:
      value (HSL) :
          A color to convert from HSL
  
  Returns:
      Color
docstr_tok: ["Create","a","new","color","by","converting","from","an","HSL","color",".","*","Subclasses","must","implement","this","method",".","*","Args",":","value","(","HSL",")",":","A","color","to","convert","from","HSL","Returns",":","Color"]
code: def from_hsl(cls, value: HSL) -> Self:
      """Create a new color by converting from an HSL color.
  
      *Subclasses must implement this method.*
  
      Args:
          value (HSL) :
              A color to convert from HSL
  
      Returns:
          Color
  
      """
      raise NotImplementedError
  
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 Color obj's underlying member method code with example usage: obj.from_hsl(cls, value) without return types