def getColor(cnvtype, pathOrBen):
    """Return the shade of the item according to it's variant type."""
    if cnvtype not in ["copy_number_loss","copy_number_gain"] or pathOrBen not in ["Benign", "Pathogenic"]:
        return "0,0,0"
    if cnvtype == "copy_number_loss":
        if pathOrBen == "Pathogenic":
            return "180,3,16"
        else:
            return "238,146,148"
    if cnvtype == "copy_number_gain":
        if pathOrBen == "Pathogenic":
            return "17,44,138"
        else:
            return "122,165,211"