/rgb-to-hex

An RGB to Hexadecimal script in Python.

Primary LanguagePython

rgb-to-hex

An RGB to Hexadecimal script in Python.

Usage:

Pass in RGB, comma separated.

python rgb_to_hex.py 145,32,73

Result:

#912049

You can pass in multiple arguments, separated by spaces:

python rgb_to_hex.py 145,32,73 255,255,255