Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

rgb to hex python

from colormap import rgb2hex
from colormap import hex2rgb

print(rgb2hex(255, 255, 255))
print(hex2rgb('#FFFFFF'))

>>> #FFFFFF
>>> (255, 255, 255)
 
PREVIOUS NEXT
Tagged: #rgb #hex #python
ADD COMMENT
Topic
Name
2+1 =