0
How to know roughly what colour an rgb or hex code will be
How to know roughly what colour an rgb or hex code will be
3 odpowiedzi
+ 2
rgb(200,20,32)
r = 200
g = 20
b = 32
note: r stands for red color, g for green and b for blue
max(r, g, b) = max(200, 20, 32) = 200
so r=200 is max
Therefore the color would be more reddish kind.
(not precisely)
+ 1
hex code is a hexadecimal(base-16) way to represent a color in RGB format by combining three values – the amounts of red, green and blue in a particular shade of color.
hex code for rgb(200, 20, 32) is #C81420.
for hex it's difficult for human to just guess only by looking at it unless someone is a superhumanman who can calculate/convert hex to rgb on their mind in a fraction of times or who can remember all the hex codes for specific colors by-heart or you found a good formula to guess the color only looking at hex codes.(I'm not sure whether there exist)
But you can write a code that does help you by converting hex codes to rgb and later you can easily guess what color is it.
I will link a post where they teach you how to convert hex to rgb:
https://www.developintelligence.com/blog/2017/02/rgb-to-hex-understanding-the-major-web-color-codes/#:~:text=First%20Value,code%20is%2012%2C%20or%20C.
0
and the hex?