code: def hex(self, value, text=None, back=None, style=None, rgb_mode=False):
          
          if rgb_mode:
              try:
                  colrval = hex2rgb(value, allow_short=True)
              except ValueError:
                  raise InvalidColr(value)
          else:
              try:
                  colrval = hex2term(value, allow_short=True)
              except ValueError:
                  raise InvalidColr(value)
          return self.chained(text=text, fore=colrval, back=back, style=style)
docs: A chained method that sets the fore color to an hex value.
              Arguments:
                  value    : Hex value to convert.
                  text     : Text to style if not building up color codes.
                  back     : Back color for the text.
                  style    : Style for the text.
                  rgb_mode : If False, the closest extended code is used,
                             otherwise true color (rgb) mode is used.