if I were to make a game with the Color’s black and white, would grey count as a different colour? And also a related question, can different brightnesses and shade of a colour count as the same or different?
Gray is considered a different color. The same color with different alpha channel parameters is still considered the same color. (The color is determined by rgb channels or channels of colors other than the alpha channel)