class_docstr: Terminal color definition.
class_docstr_tok: ["Terminal","color","definition","."]
docstr: Displays the actual color if Rich printed.
docstr_tok: ["Displays","the","actual","color","if","Rich","printed","."]
code: def __rich__(self) -> "Text":
      """Displays the actual color if Rich printed."""
      from .style import Style
      from .text import Text
  
      return Text.assemble(
          f"<color {self.name!r} ({self.type.name.lower()})",
          ("⬤", Style(color=self)),
          " >",
      )
  
imports: import platform
  import re
  from colorsys import rgb_to_hls
  from enum import IntEnum
  from functools import lru_cache
  from typing import TYPE_CHECKING, NamedTuple, Optional, Tuple
  from ._palettes import EIGHT_BIT_PALETTE, STANDARD_PALETTE, WINDOWS_PALETTE
  from .color_triplet import ColorTriplet
  from .repr import Result, rich_repr
  from .terminal_theme import DEFAULT_TERMINAL_THEME
label_desc: Use image node_id 1 for calling the Color obj's underlying member method code with example usage: obj.__rich__() and returns: Text