class_docstr: The red, green, and blue components of a color.
class_docstr_tok: ["The","red",",","green",",","and","blue","components","of","a","color","."]
docstr: get the color triplet in CSS style.
docstr_tok: ["get","the","color","triplet","in","CSS","style","."]
code: def hex(self) -> str:
      """get the color triplet in CSS style."""
      red, green, blue = self
      return f"#{red:02x}{green:02x}{blue:02x}"
  
imports: from typing import NamedTuple, Tuple
label_desc: Use image node_id 1 for calling the ColorTriplet obj's underlying member method code with example usage: obj.hex() and returns: str, red, green, blue