RGB | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

RGB

How to remember RGB codes for common colours

1st May 2019, 2:38 PM
Rajneesh Kumar
Rajneesh Kumar - avatar
5 Answers
+ 8
Just remeber this: http://acsweb.ucsd.edu/~mtakemot/CSE3/Lab2/ColorModels_files/image001.gif #FF0000 red #00FF00 green #0000FF blue Adding a color increases brightness. Green is the brightest, red second-brightest, blue is darkest. Removing a color decreases brightness. Also, removing for example blue makes the color more yellow (the opposite color on the diagram). Adding blue makes a color less yellow. That's all you need to mix colors in your head, at least somewhat well.
1st May 2019, 3:12 PM
Schindlabua
Schindlabua - avatar
+ 5
__R G B #FF0000 - Red: rgb(255,0,0); #00FF00 - Green: rgb(0,255,0); #0000FF - Blue: rgb(0,0,255); #000000 - Black: rgb(0,0,0); #777777 - Gray: rgb(127,127,127); #FFFFFF - White: rgb(255,255,255); https://www.sololearn.com/learn/HTML/1036/ https://www.sololearn.com/learn/CSS/1089/
1st May 2019, 3:29 PM
Solo
Solo - avatar
+ 2
Yes Vasiliy the hull answer
1st May 2019, 5:44 PM
Basel.Al_hajeri?.MBH()
Basel.Al_hajeri?.MBH() - avatar
+ 1
And take a look from https://w3school.org
1st May 2019, 5:44 PM
Basel.Al_hajeri?.MBH()
Basel.Al_hajeri?.MBH() - avatar
0
RGB is a mixture of red green and blue to make different colors. It contains 3 inputs , rgb(red, green,blue). Minimum input for each color is 0 and maximum is 255 Example For red , rgb(255,0,0) For green, rgb(0,255,0) For red, rgb(0,0,255) You can also mix colors to get a new color Example for white rgb(255,255,255) There is another one rgba red green blue alpha. The alpha is used for opacity of the color Example rgba(255,24,95,.3) the .3 means opacity is 30%. You can use 30% instead of .3 if you want Also it's not necessary to memorize every color you can always use different websites to choose your colour https://www.hexcolortool.com/
2nd May 2019, 3:56 PM
Hamdan
Hamdan - avatar