+ 1

What's the hex code colors in CSS?

I know white and black and grey Grey = #eee White = #fff Black = #000

7th Sep 2018, 8:03 PM
Potato Hacker
Potato Hacker - avatar
4 Réponses
+ 3
As Happy to Help mentioned, the first two values are red, next two are green and last two are blue; Hex values go from 0-9, then A-F, it's a way to count to 16 using a single character, where A is the same as 10, B = 11 and so on, until F = 15 (remember you start at 0). Hex allows for two characters per colour, so you have 00 to FF as your available options. All 0's are you've found is no colour (or black), all F's is max all colours (or white). Anytime the Red, Green and Blue values all match, you will have a shade of grey. Any other combination, the values reference how much of each colour there is. Eg, FF0000 is bright red, 00FF00 is bright green and 0000FF is bright blue. You mix these values to create one of the 16million colour combinations available.
8th Sep 2018, 1:33 AM
Duncan
Duncan - avatar
8th Sep 2018, 11:00 AM
Janning⭐
Janning⭐ - avatar
+ 1
Thanks To All!!
8th Sep 2018, 4:22 PM
Potato Hacker
Potato Hacker - avatar
+ 1
thanks!!
13th Sep 2018, 1:23 AM
Potato Hacker
Potato Hacker - avatar