0

Why even bother using a hex code for rgb color if yiu could just easily use name of the color instead?

Color

11th Dec 2019, 1:29 PM
AlphaKennyBody
AlphaKennyBody - avatar
2 Respuestas
+ 4
AlphaKennyBody As the others have mentioned, there are only a handful of named colors. However, there is value in using hex/rgb as they allow for separate numeric adjustments in levels of red, green, and blue used in any given color. These adjustments can be applied manually as needed or calculated. It wouldn't be possible to make color level adjustments simply by referring to a name as used in English. Color comparisons would be difficult as well without using the hex/rgb values. We might know that DarkRed is darker than Red, but only by name. We couldn't adjust for some level of red in between these two colors without the hex/rgb values. We also would have to commit to memory how DarkRed compares to Firebrick or to Crimson. Also, there will be many color names that simply won't make sense without looking at the color or committing to memory. For example, how does Chartreuse compare to Thistle or Azure to Seashell and MistyRose? I hope this makes sense and was helpful. 😉
11th Dec 2019, 5:39 PM
David Carroll
David Carroll - avatar
+ 4
With hex code you can define 256*256*256 = 16777216 colors. I don‘t think you want to memorize 16 million color names.
11th Dec 2019, 1:46 PM
Michael
Michael - avatar