def to_urwid_color(p_color):
    """
    Given a Color object, transform it to a color that urwid understands.
    """
    if not p_color.is_valid():
        return 'black'
    elif p_color.is_neutral():
        return 'default'
    else:
        return 'h{}'.format(p_color.color)
