def HsvToACIndexes(hsv):
    """ Convert an HSV color to its closest valid color in Animal Crossing: New Horizons.
    HSV colors are expected to be of the form (0-255, 0-255, 0-255)
    """
    hue_step = 255 / 29
    sat_val_step = 255 / 14

    return (
        int(round(hsv[0] / hue_step)) + 1,
        int(round(hsv[1] / sat_val_step)) + 1,
        int(round(hsv[2] / sat_val_step)) + 1)