hex to rgb | Python

January 2nd, 2022 05:29:13 PM

					
def hex_to_rgb(hex): return tuple(int(hex[i:i+2], 16) for i in (0, 2, 4)) hex_to_rgb('FFA501') # (255, 165, 1)

Featured Posts