+ 1
What is the easy way to identify colors in hex decimal
4 Answers
+ 5
lets take an example
hex starts with #
#0E506B
0E ------> for red --> convert it to decimal
0E = 14
simmilar
50 ->> green
50(hex) = 80 (decimal)
6B >> blue
6B = 107 (decimal)
alternative Color
rgb(14,80,107);
+ 5
In CSS there are two main ways of selecting colors. The first is to simply use the color name, like this:
background-color: blue;
Obviously this is limited. A computer can display millions of different colors, and remembering the names of every single one of them is impossible. And spare a thought for that poor guy whose job it is to come up with the names!
This is why CSS uses hex codes, like this:
background-color: #RRGGBB;
Hex Codes Represent Red, Green and Blue
A computer screen displays a color by combining red light, green light and blue light. 100% red, 100% green and 100% blue produces white.
background-color: #FFFFFF; this is white
background-color: #000000; this is black
Zero red, zero green and zero blue produces black. In fact, equal levels of red, green and blue, whatever that level may be, will always produce a shade of gray.
+ 1
well white is #ffffff and black is #000000. Each pairing of numbers corresponds to Red Green and Blue so just play around with it until you find the color you're looking for
+ 1
read what i wrote here:
https://www.sololearn.com/discuss/437696/?ref=app
and use my color picker:
https://code.sololearn.com/W3CMecJLcM18/?ref=app