Colors, Colorname and Color values In HTML: Basic HTML


Different colors are defined by different values in the web. Hexadecimal notation is used to define the values when values are defined by the hexa decimal code then that values define a color. We all know that there are 3 primary colors. They are Red, Green and Blue. The highest value of hex FFFFFF defines the white color and the lowest value 000000 defines the black color. Likewise all the colors are defined by different values. The hex values are defined by the 5 digits which start with a # sign.
different colors

Some color examples:
#000000 -> Black
#FF0000 -> Red
#0000FF -> Blue
#FFFF00 -> Yellow
#FF00FF -> Pink
#C0C0C0 -> Gray
#FFFFFF -> White

You can see some examples of color code in the above but you should also know that we can make 16 million differet colors using red, blue and green combination from the values 0 to 255. To say that most computers are only capable of displaying almost sixteen thousand three hundred and 4 colors.

You can also give the color by using different names of different colors. Some examples of color names are given below:-

AliceBlue   #F0F8FF
AntiqueWhite #FAEBD7
Beige         #F5F5DC
Black           #000000
Blue                 #0000FF
BlueViolet #8A2BE2
Brown         #A52A2A
Chocolate #D2691E
Coral        #FF7F50
Cyan        #00FFFF
Green        #008000
Gray       #808080
Indigo         #4B0082



0/Post a Comment/Comments

Previous Post Next Post