Color Values | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Color Values

Can someone please explain to me how this color value work? I’m getting a hard time trying to understand it.

10th Jan 2022, 4:43 PM
Karen Kalu
Karen Kalu - avatar
6 Answers
+ 1
Colors like #000000 or #ff0000 are hexadecimal coded colors, that means the numbers are represented not to the base of then but to the base of 16 red is #ff0000 You could write it as rgb(255, 0, 0) It means full "volume" at r but 0 at g and b In the hex color code the first 2 characters after # correspond to r, the 2nd 2 to g and the last 2 to b. I suggest you to google "color picker" and play around with it and look how the hex and rgb codes change.
10th Jan 2022, 5:01 PM
Lisa
Lisa - avatar
0
Which color value? Can you please give an example?
10th Jan 2022, 4:49 PM
Lisa
Lisa - avatar
0
I did not understand the color value lesson.
10th Jan 2022, 4:51 PM
Karen Kalu
Karen Kalu - avatar
0
Yes, and I asked: Which color value? Can you please mention the course name and the lesson number?
10th Jan 2022, 4:53 PM
Lisa
Lisa - avatar
0
Okay. Html colors. Lesson 21.1. Thank you
10th Jan 2022, 4:54 PM
Karen Kalu
Karen Kalu - avatar
0
Thanks a lot. I’ll check the color picker out too.
10th Jan 2022, 5:03 PM
Karen Kalu
Karen Kalu - avatar