def rgb_to_rgb_percent(rgb_triplet):
<EOL>specials = {<NUM_LIT:255>: u'<STR_LIT>', <NUM_LIT>: u'<STR_LIT>', <NUM_LIT:64>: u'<STR_LIT>',<EOL><NUM_LIT:32>: u'<STR_LIT>', <NUM_LIT:16>: u'<STR_LIT>', <NUM_LIT:0>: u'<STR_LIT>'}<EOL>return PercentRGB._make(<EOL>specials.get(d, u'<STR_LIT>'.format(d / <NUM_LIT> * <NUM_LIT:100>))<EOL>for d in normalize_integer_triplet(rgb_triplet)<EOL>)<EOL>
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.