Specialty Graphics

RGB Color Information

This page includes an RGB color picker application and some general information about defining RGB colors for use in programming and on the web.

 

RGB Color Picker

This Application Requires HTML5 Canvas Support

If this message appears, your browser may not support HTML5 Canvas.


RGB Value:
HEX Value:
 

Defining RGB Colors in HTML and CSS

HEX color notation example.

Color HEX Notation

Each pair of digits represents a color value defined in hexadecimal notation. The lowest possible value is '00' while the highest value, representing 255, is 'FF'.

With 256 values possible for each of the three primary colors, a total of over 16 million different colors are possible.

 
RGB color notation example.

Color RGB Notation

The three values represent the red, green, and blue intensity. Each is defined as an integer between 0 and 255.

 

HTML Named Colors

Many colors can be specified by name in HTML and CSS. The following chart shows a few of the available colors. The HEX and RGB codes are given for each color.

White
#FFFFFF
rgb(255,255,255)
LightGray
#D3D3D3
rgb(211,211,211)
Silver
#C0C0C0
rgb(192,192,192)
Gray
#808080
rgb(128,128,128)
Black
#000000
rgb(0,0,0)
Aqua
#00FFFF
rgb(0,255,255)
SteelBlue
#4682B4
rgb(70,130,180)
RoyalBlue
#4169E1
rgb(65,105,225)
Blue
#0000FF
rgb(0,0,255)
Navy
#000080
rgb(0,0,128)
Lime
#00FF00
rgb(0,255,0)
Olive
#808000
rgb(128,128,0)
Teal
#008080
rgb(0,128,128)
Green
#008000
rgb(0,128,0)
DarkGreen
#006400
rgb(0,100,0)
Red
#FF0000
rgb(255,0,0)
Crimson
#DC143C
rgb(220,20,60)
Brown
#A52A2A
rgb(165,42,42)
Maroon
#800000
rgb(128,0,0)
DarkRed
#8B0000
rgb(139,0,0)
Violet
#EE82EE
rgb(238,130,238)
Magenta
#FF00FF
rgb(255,0,255)
Fuchsia
#FF00FF
rgb(255,0,255)
Purple
#800080
rgb(128,0,128)
Yellow
#FFFF00
rgb(255,255,0)