How to know about color values with RGB value.? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How to know about color values with RGB value.?

18th Mar 2021, 10:13 AM
❴Amit ❵
❴Amit ❵ - avatar
3 Answers
+ 2
full red + full green + full blue = white full red + full green = yellow full green + full blue = cyan full red + full blue = magenta no red + no green + no blue = black with these basics, and some practice, you will be able to have an idea of what color is...
18th Mar 2021, 10:16 AM
visph
visph - avatar
+ 3
Hey there Amit Brar, Just remembered that "rbg" means "red green blue" and then for getting a color just use the combinations visph already said. :) Remember: rgb(0,0,0) is black.
18th Mar 2021, 10:19 AM
Matthew
Matthew - avatar
+ 1
Easy, just you should practice RGB : Red Green Blue You should combine these three main colors to reach the color you want. Each of them can be from 0-255; so we have: 256*256*256 = 16,777,216 colors You should practice them to understand how should you combine them. Example: <html style="background: rgb(0, 255, 255)"> this makes aqua The first value is for red, the second for green, and the last for blue. Here red is set to 0, green to 255, and blue to 255. This kind of combination makes aqua.
18th Mar 2021, 1:46 PM
🇮🇱 Radin Masiha 🇮🇱
🇮🇱 Radin Masiha 🇮🇱 - avatar