kids encyclopedia robot

RGB facts for kids

Kids Encyclopedia Facts

RGB is a way to create colors using light. It's often called additive color mixing because you add different colored lights together to make new colors. The three main colors used are red, green, and blue.

You see RGB colors every day on screens like your TV, computer, or phone. These screens have tiny red, green, and blue lights (or pixels) that glow. When these lights mix together, they can create millions of different colors.

For example, if you mix red light and green light, you get yellow. If you mix all three colors – red, green, and blue – at their brightest, you get white light. If all three are off, you get black.

Computers often use a special code called a hexadecimal code to represent RGB colors. This code looks like `#RRGGBB`. The first two letters (`RR`) tell the computer how much red light to use. The next two (`GG`) are for green, and the last two (`BB`) are for blue. Each color can have a value from 0 (no light) to 255 (full brightness). So, `#FF0000` would be pure red (full red, no green, no blue), and `#00FF00` would be pure green.

How RGB Works

RGB works by shining different amounts of red, green, and blue light. When these lights hit your eyes, your brain mixes them together to see a specific color. This is different from mixing paints, which is called subtractive color mixing. With paints, you start with white and remove colors. With light, you start with black (no light) and add colors.

Making Colors with Light

Imagine you have three flashlights, one with a red filter, one with a green filter, and one with a blue filter.

  • If you shine just the red light, you see red.
  • If you shine the red and green lights on the same spot, you'll see yellow.
  • If you shine the green and blue lights, you'll see cyan (a blue-green color).
  • If you shine the red and blue lights, you'll see magenta (a purplish-red color).
  • When you shine all three lights together, you get white light.

This is how your screen creates all the colors you see. Each tiny spot on your screen has red, green, and blue parts that can glow at different brightness levels.

RGB in Digital Images

When you take a picture with a digital camera or create an image on a computer, the colors are often stored using the RGB model. Each pixel in the image has information about how much red, green, and blue it needs to show. This information is then used by your screen to display the correct color.

For example, a bright yellow pixel might be stored as a mix of full red and full green light, with no blue. A dark blue pixel would have a low amount of blue light and no red or green.

Where is RGB Used?

RGB is super important in anything that uses light to show colors.

Computer Screens and TVs

Almost all modern computer monitors, televisions, and smartphone screens use the RGB color model. They have tiny red, green, and blue sub-pixels that light up to create the images you see.

CRT color enhanced
Cutaway rendering of a color CRT: 1. Electron guns 2. Electron beams 3. Focusing coils 4. Deflection coils 5. Anode connection 6. Mask for separating beams for red, green, and blue part of displayed image 7. Phosphor layer with red, green, and blue zones 8. Close-up of the phosphor-coated inner side of the screen
RGB pixels on a CRT monitor
RGB phosphor dots in a CRT monitor
RGB pixels
RGB sub-pixels in an LCD TV (on the right: an orange and a blue color; on the left: a close-up)

Digital Cameras and Scanners

When you take a photo with a digital camera, it captures light using sensors that are sensitive to red, green, and blue. The camera then combines this information to create a full-color image. Scanners work in a similar way to capture images from paper.

Web Design

If you've ever seen a website designer pick a color, they often use RGB values or hexadecimal codes. This tells the web browser exactly what color to display for text, backgrounds, or images.

Images for kids

See also

Kids robot.svg In Spanish: RGB para niños

kids search engine
RGB Facts for Kids. Kiddle Encyclopedia.