def as_hex(self):
        hex = [mpl.colors.rgb2hex(rgb) for rgb in self]
        return _ColorPalette(hex)
Return a color palette with hex codes instead of RGB values.
dataset/ETHPy150Open mwaskom/seaborn/seaborn/palettes.py/_ColorPalette.as_hex