docs: def rgb_to_rgb_percent(rgb_triplet):
      """
      Convert a 3-tuple of integers, suitable for use in an ``rgb()``
      color triplet, to a 3-tuple of percentages suitable for use in
      representing that color.
  
      This function makes some trade-offs in terms of the accuracy of
      the final representation; for some common integer values,
      special-case logic is used to ensure a precise result (e.g.,
      integer 128 will always convert to '50%', integer 32 will always
      convert to '12.5%'), but for all other values a standard Python
      ``float`` is used and rounded to two decimal places, which may
      result in a loss of precision for some values.
  
      """
      # In order to maintain precision for common values,
      # special-case them.
      specials = {255: u'100%', 128: u'50%', 64: u'25%',
                  32: u'12.5%', 16: u'6.25%', 0: u'0%'}
      return PercentRGB._make(
          specials.get(d, u'{:.02f}%'.format(d / 255.0 * 100))
          for d in normalize_integer_triplet(rgb_triplet)
      )