How many colours are there? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How many colours are there?

In HTML I realised that you can change different colours. I discovered red, green, blue, yellow, cyan and magenta. But I also discovered that teal, tan or lavender could be used. But then I saw that cream can't be used. I am now curious. What are all the colours that I could use?

7th Jan 2020, 1:41 PM
Rumell Khan
Rumell Khan - avatar
4 Answers
+ 4
There are quite a lot: https://www.w3schools.com/colors/colors_names.asp If you use color codes instead of names, you get millions of shades.
7th Jan 2020, 1:57 PM
HonFu
HonFu - avatar
+ 4
There are 16*16*16*16*16*16 = 16,777,216 colors in RGB.
7th Jan 2020, 2:44 PM
Jaydeep Khatri
Jaydeep Khatri - avatar
+ 1
My condolences to Eric Meyer of course, but I am kind of mad that he (or whoever) pushed #663399 RebeccaPurple onto the world.
7th Jan 2020, 3:43 PM
Schindlabua
Schindlabua - avatar
0
https://htmlcolorcodes.com/color-names/ You can see here almost all color names in html
8th Jan 2020, 11:20 AM
arieh