Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

hex to rgb python

def hex2rgb(color):
  hex = color.lstrip('#')
  rgb = tuple(int(hex[i:i+2], 16) for i in (0, 2, 4))
  
  return rgb

hex_color = "#B4FBB8"
rgb_color = hex2rgb(hex_color)

print(rgb_color)
#(180, 251, 184)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #hex #rgb #python
ADD COMMENT
Topic
Name
7+1 =