A problem about css colors

Tell us what’s happening:
Let me know about that if the colors like:
color:black, it describes the color of black then why we use hex code for the color?
what is the use of hex code like:
color: #000000

Your code so far

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.80 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/responsive-web-design/responsive-web-design-projects/build-a-survey-form

for example, if you work with a designer, he will not understand what colors you are talking about. in programs like photoshop or illustrator they use hex codes or rgba.

Firstly, it is the colour, defined in RGB format (which is a triplet of 3 numbers between 0 and 255 - black is rgb(0, 0, 0)), using base-16 (rather than base-10 (decimal)) for the numbers. “Black” doesn’t mean anything specific. The RGB value is the intensity of each of the colour channels used by eg your computer screen or by your TV. It’s easy for a computer to read (and it is always exactly the same size), and it’s easy for a human to pass around to other humans, regardless of language.

#000000
// split into 3 pairs
00
00
00
// Convert to decimal (exactly the same in this case)
00
00
00
// So
Red: 00
Green: 00
Blue: 00

And also, what do you call the other thousands of colours that don’t have names?

black
not-quite-black
just-a-little-bit-less-black-than-that
really-dark-blue-that-looks-black
etc

Also what about:

noir
schwarz
etc
1 Like