+ 4
Related HTML colouring the text
I am confused when we write colour in hexadecimal format like #00000 how we can give colour by giving a specific number?
34 Respuestas
+ 17
hex codes are RGB, red - green - blue
for three digit hex code, e. g. #123
1 is red (1 out of 15)
2 is green (2 out of 15)
3 is blue (3 out of 15)
for six digit hex code, e. g. #22aa88
22 is red (22 out of 255)
aa is green (10*16+10 out of 255)
88 is blue (88 out of 255)
the larger the number, the more that color.
e. g.
#ff0000 is pure red
#00ff00 is pure green
#0000ff is pure blue
so
#ff00ff is red + blue = purple
+ 5
You can open color mixer on here
https://www.w3schools.com/colors/colors_mixer.asp
+ 3
https://code.sololearn.com/WMSkYLwkX4Ij/?ref=app
here is ur answer
+ 2
Can you explain your question?
+ 2
Simply how to colour the text with the help to #type..
+ 2
Just type yellow 😅
+ 2
#000000 for black
#FFFFFF for white
#FF0000 for red
#00FF00 for green
#0000FF for blue
+ 2
I will give advice
Don't ever ask for points or like or upvotes
+ 1
Which color
+ 1
Any colour like yellow
+ 1
When you need more than form from general color then use hexa color
+ 1
Brother am just asking in #type format... Have you done this course??
+ 1
Absolutely
+ 1
It depends in which color you want
+ 1
Yes this is my question 😁
+ 1
Thanks please give me a point,
+ 1
I know the answer.plz go chatbox and send sms to me .I will give you answer
+ 1
Gordon Very nice explanation :))
+ 1
Color numbers are specified using hexadecimal (base 16) values.
The hexidecimal digits are: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F
(where A through F equal the base 10 numbers: 10, 11, 12, 13, 14, 15)
The six digit color number is broken into three groups of two digits which specify the amount of Red, Green, and Blue in the color (using additive color...the way colored lights mix, not the way color pigments mix). Each two digit hex pair can have a value from 00 to FF (FF=256 in base 10). This gives over 16 million possible colors.
For example:
#FF0000 means FF worth of Red, and no Green or Blue. The result is RED.
#0000FF means no Red or Green, and FF worth of Blue. The result is BLUE.
#FFFF00 means FF worth of Red and Green, and Blue. The result is YELLOW.
#000000 means no Red, Green, or Blue. The result is BLACK.
#FFFFFF means full FF amounts of Red, Green, and Blue. The result is WHITE.
#FFEFD5 has high values for all colors, giving a light result: PAPAYAWHIP.
(no, I don't know who thought up the color names.)
#556B2F has lower values for all colors, giving a darker result: DARKOLIVEGREEN.
0
I just asked for my understanding not for like something