Menu

RGB Color Game

Color game demo

A simple JavaScript game that uses DOM and event listeners to test your knowledge of RGB color values.

Click here to give it a try or see the code here.

How It Works

  • There are three difficulty levels: easy, medium, and hard.
    • The easy mode has three colors to choose from.
    • The medium mode has six colors to choose from.
    • The hard mode has nine colors to choose from.
  • The RGB value in the title is the color that you are trying to identify.
  • Click on the square with the corresponding color to "guess".
  • A "Try Again" message will appear if you have chosen the incorrect square.
  • Click "New Colors" to refresh the displayed RGB value and display a new assortment of colored squares.