def hex_to_web(_hex):
try:<EOL><INDENT>return web_colors[hex_to_rgb(_hex)]<EOL><DEDENT>except KeyError:<EOL><INDENT>return _hex<EOL><DEDENT>
Convert a HEX color representation to a WEB color representation.

hex :: hex -> [000000, FFFFFF]

:param _hex: The 3- or 6-char hexadecimal string representing the color value.
:return: WEB representation of the input HEX value.
:rtype: str