Lesson 71
30 XP

Color Picker

Create an Interactive Color Selection Tool

Step 1 of 5

Understanding RGB Colors

Colors on screens are made by mixing Red, Green, and Blue light. Each color channel can have a value from 0 to 255.

RGB Color Model:

  • Red (R): 0-255
  • Green (G): 0-255
  • Blue (B): 0-255

Example Colors:

rgb(255, 0, 0)
Pure Red
rgb(0, 255, 0)
Pure Green
rgb(0, 0, 255)
Pure Blue

Interactive Demo:

#808080
rgb(128, 128, 128)