In all core series games since Generation III, vitamins that affect stats increase a Pokémon's EVs for a given stat by 10 EV points, but can't increase the total EVs beyond a maximum of 510. Between Generations III and VII , vitamins will also have no effect on an individual stat that already has 100 or more EVs.
7XO9A9f.