👁️RGB Color Model
Also known as RGB, Red Green Blue
How screens make color: red, green and blue light mixed together.
Think of it like
It is like shining three torches on a wall: red, green and blue. Where they meet, new colors appear.
Example
Lucy sets a button to rgb(0 120 255). Full blue, some green and no red give a bright sky blue.
Why it matters
Every color you see on a screen is RGB, so all screen design ends up in it.
Definition
Example code
css
color: rgb(255 0 0); /* red */
color: rgb(255 255 255); /* white */
color: rgb(0 0 0); /* black */Common mistake
Key takeaways
- 1Light, not ink. Red, green and blue mixed.
- 2Adding makes white. All three full is white.
- 3For screens. Print uses CMYK.