def is_grey(rgb, threshold=20):
    """
    Return true if an rgb color is a shade of grey.
    """
    return abs(rgb[0] - rgb[1]) <= threshold and abs(rgb[1] - rgb[2]
        ) <= threshold and abs(rgb[2] - rgb[0]) <= threshold
