0

How can i know the colur code? If there is any shortcut?

There is many color code.... I can't understand the colur codes

13th Aug 2017, 6:03 AM
BALAJI RAJENDRAN
BALAJI RAJENDRAN - avatar
2 Answers
+ 8
HTML accepts three types of values for specifying color - 1.Hex values 2.RGB values 3.Color Name Example: Hex values - Hex values use Hexadecimal numerals[It ranges from 0-9, A-F , total of 16 values ] used to specify color For red the code will be #ff0000 , [ Here , the first two digits(ff) specify the strength of red color in the mixture and next two specify the green color (00)and last two are for blue(00). You can imagine that which code to use for desired color , Since you know that what is the strength of red , green and blue colors in the hex code.] For black #000000 , Strength of all colors is 0 here so result will be black. For white - #ffffff , strength of all colors is equal in this one , which gives us the resultant color white. To understand them in a better way read about Hexadecimal numerals and see the effect of different Hex codes In the program. 2. RGB values - RGB value is also like hex one but the difference is that In rgb values we use decimals (0-255) to specify the strength of a color. For red - rgb(255,0,0) It is also easy to understand , the strength of red is 250 above and others are 0 so the resultant color is red. For other colors just think of resultant color when you mix the colors , when rgb(250,250,250) is used we get white color and rgb(0,0,0) outputs white color. Using color names is easier but rgb and hex are better as we can get more variety of colors by using Hex and rgb values for color.
13th Aug 2017, 7:24 AM
un1xx
un1xx - avatar
+ 4
http://lmgtfy.com/?q=HTML+color+codes The color code is made up from 3 components in hexadecimal format. The components represent amount of basic colors (red, green and blue) in the resulting mix. #00ff00 represents 00 - zero of red, ff (255 in decimal) - maximum of green, 00 - zero of blue. So #00ff00 is green. All color components are in range between 0 and 255 (0 to ff in hexadecimal). You can look up the hex color values in most graphics editors' color pickers, or use some online tools to pick a desired color (see the link above).
13th Aug 2017, 6:22 AM
deFault