import re


def is_hex_color_6(text):
    """
    Checks if the given text is an hexadecimal color of 6 values (#RRGGBB)

    Args:
        text (str): The text to match
    Returns:
        A boolean value, True if the text matches and False if not
    Raises:
        TypeError: If not text given
    """
    regex = r'^#[a-fA-F0-9]{6}$'
    return True if re.match(regex,text.strip()) else False