striplog/utils.py
def hex_to_name(hexx):
    """
    Convert hex to a color name, using matplotlib's colour names.

    Args:
        hexx (str): A hexadecimal colour, starting with '#'.

    Returns:
        str: The name of the colour, or None if not found.
    """
    for n, h in defaults.COLOURS.items():
        if (len(n) > 1) and (h == hexx.upper()):
            return n.lower()
    return None
def hex_to_name(hexx):
    for n, h in defaults.COLOURS.items():
        if (len(n) > 1) and (h == hexx.upper()):
            return n.lower()
    return None
def hex_to_name ( hexx ) : for n , h in defaults . COLOURS . items ( ) : if ( len ( n ) > 1 ) and ( h == hexx . upper ( ) ) : return n . lower ( ) return None
Convert hex to a color name, using matplotlib's colour names.

    Args:
        hexx (str): A hexadecimal colour, starting with '#'.

    Returns:
        str: The name of the colour, or None if not found.
Convert hex to a color name using matplotlib s colour names .