code: def hex_color(self, safe: bool = False) -> str:
          
          if safe:
              return self.random.choice(SAFE_COLORS)
  
          return '#{:06x}'.format(
              self.random.randint(0x000000, 0xffffff))
docs: Generate a random hex color.
  
          :param safe: Get safe Flat UI hex color.
          :return: Hex color code.
  
          :Example:
              #d8346b