In schools we have alredy learnt about three primary colors as Red, Green, Blue.
named RGB all colors made from mixture of these primary colors. Actualy there are three methods to give color.

☛

Method one Color Names : Use dirct name of color as style="color:green;" Red, Pink, Yellow etc.

☛

Method Two RGB Values : Use RGB value as rgb(red,green,blue intensity) mean rgb(255,0,0) here it will show red color because 255 at red plce is red maximum
intensity and blue is zero and green is zero.

☛

Method Three Hex Codes : Use hex value of color as #FF0000 for red, #0000FF for yellow etc.