class_docstr: A base class for representing color objects.
  
      
class_docstr_tok: ["A","base","class","for","representing","color","objects","."]
docstr: Return a CSS representation of this color.
  
  *Subclasses must implement this method.*
  
  Returns:
      str
docstr_tok: ["Return","a","CSS","representation","of","this","color",".","*","Subclasses","must","implement","this","method",".","*","Returns",":","str"]
code: def to_css(self) -> str:
      """Return a CSS representation of this color.
  
      *Subclasses must implement this method.*
  
      Returns:
          str
  
      """
      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 9 for calling the Color obj's underlying member method code with example usage: obj.to_css() without return types