How can we know the exact code of hexadecimal for a particular color generated from RGB mixture?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 7

How can we know the exact code of hexadecimal for a particular color generated from RGB mixture??

And also how can we tell the particular color by looking hexadecimal code.

2nd May 2017, 5:37 AM
venkata ramarao yarlagadda
venkata ramarao yarlagadda - avatar
8 Answers
+ 5
Beside hex code, you can use color names https://www.w3schools.com/cssref/css_colors.asp
2nd May 2017, 5:49 AM
Calviղ
Calviղ - avatar
+ 5
i answered a similar question before , but i'm not able to find it so here is another short explanation. each 2 digits of the hex code, stands for red, green and blue. hexadecimal values go from 0-9, then istead of 10, it is A, then B, C, D, E and F. In total we have from 0 to F (or 0-F). so now we kmow the minimum for each 2 digits can be 00(black), and the maximum FF(white) for exemple, if you have the following hex code: #FF0000, means that you have all red, no green and no blue.if you want no red, all green and no blue, it is #00FF00. by this logic you can try to mix values like #FFFF00(all red and all green), which gives you yellow. What you can do is try to remember easier shades too from this logic. Pure conversion between RGB and Hex values are almost impossible to be done just by looking. That's why there are calculators/color pickers all around.
2nd May 2017, 5:58 AM
Welliton Malta
Welliton Malta - avatar
2nd May 2017, 5:43 AM
Calviղ
Calviղ - avatar
+ 4
If using js, try w3schools w3color.js https://www.w3schools.com/lib/w3color.js
2nd May 2017, 6:01 AM
Harm Zeinstra
Harm Zeinstra - avatar
+ 3
by converting automatically with my amazing code 😃 hahaha https://code.sololearn.com/W3CMecJLcM18/?ref=app
2nd May 2017, 5:43 AM
Welliton Malta
Welliton Malta - avatar
+ 3
Hey dude is there any alternative than code?
2nd May 2017, 5:47 AM
venkata ramarao yarlagadda
venkata ramarao yarlagadda - avatar
+ 3
Thanks dude
2nd May 2017, 5:50 AM
venkata ramarao yarlagadda
venkata ramarao yarlagadda - avatar
+ 1
Many online color pickers available. If you search web color picker on Google. It displays a box select any color it will show hexadecimal value beside it.
2nd May 2017, 2:13 PM
Yogesh Kulkarni
Yogesh Kulkarni - avatar