YouTip LogoYouTip

Html Colorvalues

HTML Color Values | Simple Tutorial

HTML Color Values

Colors are composed of red (R), green (G), and blue (B).


Color Values

Color values are represented by hexadecimal numbers for red, green, and blue (RGB).

The minimum value for each color is 0 (hexadecimal 00), and the maximum value is 255 (hexadecimal FF).

The hexadecimal value format is a # sign followed by three or six hexadecimal characters.

Three-digit notation is: #RGB, which is converted to six-digit notation as: #RRGGBB.

Color Examples

Color 3-digit Hex Color Value 6-digit Hex Color Value RGB
#000 #000000 rgb(0,0,0)
#F00 #FF0000 rgb(255,0,0)
#0F0 #00FF00 rgb(0,255,0)
#00F #0000FF rgb(0,0,255)
#FF0 #FFFF00 rgb(255,255,0)
#0FF #00FFFF rgb(0,255,255)
#F0F #FF00FF rgb(255,0,255)
#888 #888888 rgb(136,136,136)
#FFF #FFFFFF rgb(255,255,255)

Try it yourself Β»


Sort Colors by Hexadecimal (Hex) Values

View the list of colors sorted by color names

Color Name HEX Color
Black #000000
Navy #000080
DarkBlue #00008B
MediumBlue #0000CD
Blue #0000FF
DarkGreen #006400
Green #008000
Teal #008080
DarkCyan #008B8B
DeepSkyBlue #00BFFF
DarkTurquoise #00CED1
MediumSpringGreen #00FA9A
Lime #00FF00
SpringGreen #00FF7F
Aqua #00FFFF
Cyan #00FFFF
MidnightBlue #191970
DodgerBlue #1E90FF
LightSeaGreen #20B2AA
ForestGreen #228B22
SeaGreen #2E8B57
DarkSlateGray #2F4F4F
LimeGreen #32CD32
MediumSeaGreen #3CB371
Turquoise #40E0D0
RoyalBlue #4169E1
SteelBlue #4682B4
DarkSlateBlue #483D8B
MediumTurquoise #48D1CC
Indigo #4B0082
DarkOliveGreen #556B2F
CadetBlue #5F9EA0
CornflowerBlue #6495ED
MediumAquaMarine #66CDAA
DimGray #696969
SlateBlue #6A5ACD
OliveDrab #6B8E23
SlateGray <a href="
← Html ScriptsHtml Colornames β†’

YouTip © 2024-2026 | Home | Learn Technology, Build Dreams!

All content is for educational and learning purposes only.