I gave the same intensities of the the Red, Green and Blue colors to create a gray color. Here you can see that I have created a Gray Color in the RGB Color Model. The Gray Color forms when the intensity of Red, Green and Blue colors is same. We can easily create different shades of the Gray Color using RGB. Rgb( 255, 105, 180 ) Different Shades Of Gray
#CSS COLOR CODES RGB CODE#
So the RGB color code for the Hot Pink color is : You can simply search on the internet for the RGB color codes of different colors. The Hot Pink color have different proportions of the Red, Green and Blue colors in it. Rgb ( 255, 255, 255 ) Creating Hot Pink Color in RGB : So the RGB color code for the white color will be : That is why we call the sunlight to be white light. The white color have the maximum intensity of every other color because it is made up of the all of the color bands in the light. Rgb ( 0, 0, 0 ) Creating The White color in RGB : So the RGB color code for the black color will be : It is because we see different colors due to the different color bands present in the light but black color means the absence of the light and so the intensity of any other color will be 0. The black color have 0 intensity of any other color. 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.
![css color codes rgb css color codes rgb](https://www.w3schools.com/colors/img_colormap.gif)
![css color codes rgb css color codes rgb](https://htmlcolorcodes.com/assets/images/color-picker/html-color-codes-color-wheels-complementary-thumb.png)
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.
![css color codes rgb css color codes rgb](https://rgbcolorcode.com/rgbcolor/rgb.jpg)
We will start by understand how this model works and then we will see how we can actually use it in the CSS 3.
![css color codes rgb css color codes rgb](https://convertingcolors.com/color-palette-image/view/C0C0C0DCDCDCF8F8F8FFFFFF.png)
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. Hello everyone, I am Satyam and in this article we are going to see the RGB Color Model and Codes.