RAVINDRA'S BLOG
RGB
- RGB stands for Red, Green and Blue.
- Red, Green and Blue is technique that used every colour displays.
- Using these three color combinations lots of color are Produced.
- RGB is show in below figure.
Color Mixing Technique:
- Mixing Red with Green give yellow.
- Mixing Red with Blue gives Magenta.
- Mixing Green with Blue gives Cyan.
Color Code:
- Each color in RGB as 8 Bits. (i.e, R,G,B (8,8,8))
- Each color code range is 0-255
- Below shows functionality of LED with value.
| 0 |
LED OFF |
| 255 |
LED ON |
| 0-255 |
LED Partially On |
- Color codes are represented in:
- Hexadecimal
- Decimal
- Binary
Color Shades:
Red Shades:
- Red shades of colors are obtained by setting Red color value high compare to Green and Blue.
- Below is the figure show Red color shades.
Green Shades:
- Green shades of colors are obtained by setting Green color value high compare to Red and Blue.
- Below is the figure show Green color shades.
Blue Shades:
- Blue shades of colors are obtained by setting Blue color value high compare to Red and Green.
- Below is the figure show Green color shades.
Yellow Shades:
- Yellow shades of colors are obtained by setting high values to Green color and Red color values, leaving Blue to low value.
- Below is the figure show Yellow color shades.
Magenta Shades:
- Magenta shades of colors are obtained by setting high values to Blue color and Red color values, leaving Green to low value.
- Below is the figure show Magenta color shades.
Cyan Shades:
- Cyan shades of colors are obtained by setting high values to Blue color and Green color values, leaving Red to low value.
- Below is the figure show Cyan color shades.
Below is the table that list some of the daily colors:
| Color |
Color Name |
Hex Code |
(R,G,B) |
|
Black |
#000000 |
(0,0,0) |
|
White |
#FFFFFF |
(255,255,255) |
|
Red |
#FF0000 |
(255,0,0) |
|
Green |
#00FF00 |
(0,255,0) |
|
Blue |
#0000FF |
(0,0,255) |
|
Yellow |
#FFFF00 |
(255,255,0) |
|
Cyan |
#00FFFF |
(0,255,255) |
|
Magenta |
#FF00FF |
(255,0,255) |
|
Silver |
#C0C0C0 |
(192,192,192) |
|
Gray |
#808080 |
(128,128,128) |
|
Maroon |
#800000 |
(128,0,0) |
|
Olive |
#808000 |
(128,128,0) |
|
Dark Green |
#008000 |
(0,128,0) |
|
Purple |
#800080 |
(128,0,128) |
|
Teal |
#008080 |
(0,128,128) |
|
Navy |
#000080 |
(0,0,128) |