class_docstr: A base class for representing color objects.
  
      
class_docstr_tok: ["A","base","class","for","representing","color","objects","."]
code: def to_serializable(self, serializer: Serializer) -> AnyRep:
      return self.to_css()
  
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 2 for calling the Color obj's underlying member method code with example usage: obj.to_serializable(serializer) and returns: self