18 Tem 2016 - Here is a simple way: import random color = '%06x' % random.randint(0, 0xFFFFFF) It is possible to generate random values in (RGB, HEX, WEB, YIQ, HSV). Latest PyPI version License Compatible python versions Number of PyPI . Converts and manipulates common color representation (RGB, HSL, web, …) . Python code example 'Generate a random color hex' for the package random, powered by Kite. Visualizing named colors ======================== Simple plot example with the named colors and its visual representation. ''' from __future__ import . The biggest collection of official brand color codes around. Includes hex colors codes for 500+ brands including Facebook, Twitter, Instagram, and many more.