Contrary to the Earnshaw's theorem, I have an example. Consider 6 positively charged particles of equal magnitudes places at the corners of a regular hexagon. Naturally, the field at the centre of the hexagon is zero. Now, place another positively charged particle at centre of the hexagon. This particle will be in STABLE EQUILIBRIUM. Which goes against the Earnshaw's theorem. Please help me with this contradiction, and where it's going wrong.
In order for a charged particle to be in stable equilibrium electrostatically, you must have that all the electric field lines at some point (the point where you want to place your particle) be pointing towards (away from) the particle. This means that the divergence of the electric field in this region would be negative (positive).
However, Gauss' Law tells us that in free space (such as at this point we're considering):
$$\nabla\cdot E = 0,$$
which means that we cannot have such a stable configuration, and so there must be instability in some direction. This point that naively seems stable is actually a saddle point, which isn't stable.
You seem to be assuming that the six particles at the corners are held in place. But Earnshaw's theorem applies to all the particles, not just the one in the center, and no other forces are allowed (including whatever is holding those particles in place). If the six particles are allowed to move freely, they will all move away from each other.