I still don't get the html colors. Is there an easier way to determine a color using hexadecimal values? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 1

I still don't get the html colors. Is there an easier way to determine a color using hexadecimal values?

3rd Feb 2018, 4:09 AM
Haselita
Haselita - avatar
2 Respostas
3rd Feb 2018, 4:12 AM
NezhnyjVampir
+ 1
The first 2 hex digits are red, second two are blue, and third is green. Instead of considering them as simply 0-255 try thinking of them as 0-100%. At 0% they will have no effect on the color, and of course at 100% they will have the greatest effect they can. With that also consider the color wheel -- RGB makes it slightly askew, but at least red and blue still exist for easy comparison. With a bit of practice you will begin to know roughly what value you'll need to use. Alternatively you can use the CSS named colors to help avoid the need for the hex values. https://www.w3schools.com/cssref/css_colors.asp
3rd Feb 2018, 5:10 AM
Tom Shaver
Tom Shaver - avatar