Color Property
Used to set the color of the foreground
color : purple;
<!--By using the color code which is hexa-decimal value-->
color : #ffffff;
<!--By using the color RGB value-->
color : rgb( 255, 255, 255 );
Background-color Property
Used to set the colot of the background.
backgroud-color : purple;
<!--By using the backgroud-color code which is hexa-decimal value-->
backgroud-color : #ffffff;
<!--By using the backgroud-color RGB value-->
backgroud-color : rgb( 255, 255, 255 );
Color Systems
There are many color systems in css :-
-
Named Colors :-
Each browser recognizes around approximate 140 to 150 named colors.
Eg. - Red,Blue,Pink,Purple etc.color : orange ; -
RGB Color System
Red - Green - Blue
Used in T.V. , Camera etc.
Colors value range is -> ( 0 - 255 )
RGB ( red value, green value, blue value )red is rgb(255, 0, 0)
blue is rgb(0, 0, 255)
black is rgb(0, 0, 0)
white is rgb(255, 255, 255)
yello is rgb(255, 255, 0)<!--RGB code for orange color.-->
color: rgb(255,165,0); -
Hexa-decimal or Hex or Hex-code Color System
used the hexa-decimal code to represent color
There are following 16 letters in hexa-decimal code :-
0, 1, 2, 3, 4, 5, 6, 7 ,8 ,9, A, B, C, D, E, F
This is compact version of RGB code.<!--RGB code for orange color.-->
color: #FFA500;
Number System :-
Decimal Binary Hexa-decimal Digits: 0 to 9 Digits: 0 & 1 characters: "0 to 9" & "A to F" Used in daily math used in computers used in hexcode and color System base 10 base 2 base 16
Color Picker :-
used to get the color rgb, hex etc value
COLOR PICKER