To create any color, we will need to specify the intensity of each of the Red, Green and Blue colors in the syntax of RGB colors.
In the above syntax, we simply write the intensities of the Red, Green and Blue colors.Įach color can have an intensity from 0 to 255.Ġ means that color is not present in the required color and 255 is the maximum intensity. Now we are going to see the syntax of writing the RGB Colors in the CSS 3. We simply write the intensities of the Red, Green and Blue color present in the required color and then the computer / browser will generate the color. The RGB model works the same way the Human Eye works. It is because we manipulate the Red, Green and Blue colors in it.
Css color codes rgb full#
The Full Form of the RGB is Red Green Blue. We specify the different amounts / intensities of the Red, Green and Blue colors and then the computer processor simply generates the required color. This is exactly what we do in the RGB color Model. So as you can see that all of the colors that we see can actually be made by adding different amount of the Red, Green and Blue colors. Then the brain simply process the Data send by Eye and then it Generates the color. So that means when we see a color then these cells simple send the Data about the intensity of Red, Green and Blue colors coming from color that we are seeing. We have cone and rod cell in our eyes that can see only the Red, Green and Blue colors. The Human Eye can see about 10 million colors easily.īut we do not really see every single color. To understand the RGB color Model we first need to know how the Human Eye sees the colors. We will start by understand how this model works and then we will see how we can actually use it in the CSS 3. The RGB Color Model is very easy to understand and it feels very intuitive. This way of adding / specifying Colors is very good because we get access to thousands and thousands and thousands of colors and we can create our own colors too. HTML is the foundation of webpages, is used for webpage development by structuring websites and web apps.You can learn HTML from the ground up by following this HTML Tutorial and HTML Examples.Hello everyone, I am Satyam and in this article we are going to see the RGB Color Model and Codes.