Skip to content

Convert RGB to Hex in Python

Advertisements

print(('{:02X}' * 3).format(102, 10, 124)) 

#660A7C

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.