Viewport render looks nothing like the actual render

I am a new blenderer, and for my first ambitious project I made a RGB keyboard. In the viewport render, it looks one way however, when I go to render it, It looks entirely different.

Any advice as to why this is happening and how to solve it would be greatly appreciated.

I would attach my blend file but as a new user I am unable to.

Hi, @RemixedGamer,
The very first thought - check, which render engine you actually use. Cycles, Eeveee, or the other (external, like Luxcore)? If you use emission shader, the material will look differently in Cycles and in Eevee.

everything is set to cycles, the problem still remains.