def METHOD_NAME(name: str) -> str | None:
    """
    Tries to look up a hex code value from a named css color, otherwise will
    return None if not a valid color.
    """
    name = name.lower()
    if PLColor.match(name):
        return PLColor(name).to_string(hex=True)
    return None