I want to convert a three-digit hex color which is coming from HTML CSS to a six-digit hex color for Flex. Can anyone give me code to convert 3-digit hex colors to their 6-d
If you came here and is using Python, here's how:
hex_code = '#FFF' new_hex_code = '#{}'.format(''.join(2 * c for c in hex_code.lstrip('#')))