import colorsys


def hex_2_hsv(hex_col):
	"""
	convert hex code to colorsys style hsv

	>>> hex_2_hsv('#f77f00')
	(0.08569500674763834, 1.0, 0.9686274509803922)
	"""
	hex_col = hex_col.lstrip('#')
	r, g, b = tuple(int(hex_col[i:i+2], 16) for i in (0, 2 ,4))
	return colorsys.rgb_to_hsv(r/255.0, g/255.0, b/255.0)