0

How is color defined..say #555 or say #32cd32 and logic behind.?

Someone care to expand what is the logic behind color definition say #555 for example.

24th Jul 2018, 2:48 PM
kp kalia
kp kalia - avatar
6 odpowiedzi
+ 3
kp kalia , hex colors are just like rgb colors converted to hexadecimal value. You have to be familiar with hexadecimal numbers to understand how it works. So basically, if you have an rgb color like rgb(50, 205,50), you just have to convert each those 3 color components to their hex values. 50 in hex is 32 and 205 in hex is CD. Just combine all three and add a '#' at the beginning. You'll get #32CD32. On the other hand, #555 is just a shortcut version of #555555.
24th Jul 2018, 3:33 PM
Jonathan Pizarra (JS Challenger)
Jonathan Pizarra (JS Challenger) - avatar
0
@TurtleShell Thanks. But it is too difficult to understand. I am trying ,but honestly speaking , I am getting no idea. Concept is not yet clear.
24th Jul 2018, 3:12 PM
kp kalia
kp kalia - avatar
0
https://www.quackit.com/css/css_color_codes.cfm
24th Jul 2018, 4:40 PM
deepak sharma
deepak sharma - avatar
18th Jan 2020, 4:08 AM
rahul kumar
rahul kumar - avatar