#010101, because the three values are all equal, is the darkest possible shade of grey, and #020202 is the second darkest. So #000100 is zero red, the darkest possible shade of green without being totally black, and zero blue. The six digits of a hex code are in fact three two-digit numbers, each representing the level of red, green and blue. In fact, equal levels of red, green and blue, whatever that level may be, will always produce a shade of gray. Zero red, zero green and zero blue produces black. 100% red, 100% green and 100% blue produces white. Hex Codes Represent Red, Green and BlueĪ computer screen displays a color by combining red light, green light and blue light. Learning this is surprisingly easy and satisfying, and once you’ve got your head around it you’ll be able to write your own hex codes without the need for a color picker. But it’s likely you have no idea what a hex code means or how it’s generated. You probably use a hex color picker to generate your codes. This is why CSS uses hex codes, like this: background-color: #DDEEFF And spare a thought for that poor guy whose job it is to come up with the names! A computer can display millions of different colors, and remembering the names of every single one of them is impossible. The first is to simply use the color name, like this: background-color: blue In CSS there are two main ways of selecting colors.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |