def limit_representation(self, rep):

        if rep is True or rep is False:
            return self

        other = copy(self)
        if other.fg:
            other.fg = other.fg.limit_representation(rep)
        if other.bg:
            other.bg = other.bg.limit_representation(rep)
        return other
This only converts if true representation is higher
dataset/ETHPy150Open tomerfiliba/plumbum/plumbum/colorlib/styles.py/Style.limit_representation