def name_to_slack_color(color_name):
    """map hipchat color-names to slack colors

    Args:
        color_name (str): name of color

    Returns:
        str: slack color name

    """
    color_name = color_name.lower()
    if color_name == 'green':
        return 'good'
    if color_name == 'yellow':
        return 'warning'
    if color_name == 'red':
        return 'danger'

    return ''