@classmethod
def _to_internal_color(cls, c):
    """
        Converts a color to the appropriate TKinter representation.

        This method allows us to support all color formats, while using a single
        color format for the backend.

        :param c: the color value
        :type c:  valid color

        :return: The given color value, converted to an internal format
        :rtype:  ``str``
        """
    from .. import colors
    return c.webColor() if type(c) in [colors.RGB, colors.HSV] else c if c[0
        ] == '#' else colors.tk_webcolor(c)
