Color Codes For CSS
Color Codes For CSS
CSS Color
Codes
Use the following color picker or
color charts to pick a color that you
can use within your CSS code. The
color picker provides the color
values in hexadecimal and RGB.
The color chart provides them in
hexadecimal, RGB, and their color
names.
Color Picker
◯ ◯
# FFFFFF
R 255 H 0
G 255 S 0
B 255 V 100
Hex #FFFFFF
https://www.quackit.com/css/css_color_codes.cfm 1/13
2/12/2018 CSS Color Codes
Color 1
Color 2
Color 3
https://www.quackit.com/css/css_color_codes.cfm 2/13
2/12/2018 CSS Color Codes
Orange FFA500255,165,0
Lime 00FF00 0,255,0
Gray 808080 128,128,128
Yellow FFFF00255,255,0
Teal 008080 0,128,128
Silver C0C0C0192,192,192
IndianRed CD5C5C
GreenYellow
205,92,92 ADFF2F
Cornsilk
173,255,47
FFF8DC 255,248,220
LightCoral F08080
Chartreuse
240,128,1287FFF00
BlanchedAlmond
127,255,0FFEBCD 255,235,205
Salmon FA8072
LawnGreen
250,128,1147CFC00
Bisque
124,252,0FFE4C4 255,228,196
DarkSalmon E9967ALime
233,150,122 00FF00
NavajoWhite
0,255,0 FFDEAD 255,222,173
LightSalmon FFA07A
LimeGreen
255,160,12232CD32
Wheat
50,205,50F5DEB3 245,222,179
Crimson DC143C
PaleGreen
220,20,60 98FB98
BurlyWood
152,251,152
DEB887 222,184,135
Red FF0000
LightGreen
255,0,0 90EE90Tan
144,238,144
D2B48C 210,180,140
FireBrick MediumSpringGreen
B22222 178,34,34 00FA9A
RosyBrown
0,250,154BC8F8F 188,143,143
DarkRed 8B0000
SpringGreen
139,0,0 00FF7F
SandyBrown
0,255,127F4A460 244,164,96
MediumSeaGreen 3CB371
Pinks Goldenrod
60,179,113
DAA520 218,165,32
Pink SeaGreen
FFC0CB 255,192,2032E8B57
DarkGoldenrod
46,139,87B8860B 184,134,11
ForestGreen 228B22Peru
34,139,34CD853F 205,133,63
https://www.quackit.com/css/css_color_codes.cfm 3/13
2/12/2018 CSS Color Codes
https://www.quackit.com/css/css_color_codes.cfm 4/13
2/12/2018 CSS Color Codes
https://www.quackit.com/css/css_color_codes.cfm 6/13
2/12/2018 CSS Color Codes
Color names are case-
insensitive (it doesn't matter
whether you use
UPPERCASE or lowercase).
In Hexadecimal Notation
Here is the same color, but this time
using hexadecimal notation instead
of the color name.
Hex colors are case-
insensitive (it doesn't matter
whether you use
UPPERCASE or lowercase).
https://www.quackit.com/css/css_color_codes.cfm 7/13
2/12/2018 CSS Color Codes
In RGB Functional
Notation
Here is the same color, but this time
using RGB functional notation.
body {
background-color:
rgb(0,0,255);
}
body {
background: rgb(0,0,255);
}
h1 {
color: rgb(0,0,255);
}
article {
border-color: rgb(0,0,255);
}
article {
border: 1px solid
rgb(0,0,255);
}
https://www.quackit.com/css/css_color_codes.cfm 8/13
2/12/2018 CSS Color Codes
Full-Page Example
Here is an example of where CSS
color codes can fit into an HTML
document.
Try it
Transparent Colors
CSS also enables us to add
transparent colors to our HTML
elements. This means that you can
add a color that's semi-transparent
— so that you can see the element
behind it.
<!DOCTYPE html>
<title>Example</title>
<style>
body {
background:
url('/pix/samples/bg2.png') beige;
color: rgba(0, 0, 0, 1);
font-size: 2em;
https://www.quackit.com/css/css_color_codes.cfm 9/13
2/12/2018 CSS Color Codes
}
article {
background-color: rgba(30, 255, 50,
0.5);
border: 5px solid olive;
margin: 20px;
text-align: center;
}
</style>
<article>
List of Color
Properties
https://www.quackit.com/css/css_color_codes.cfm 10/13
2/12/2018 CSS Color Codes
background-color
background
border
border-bottom-color
border-color
border-left-color
border-right-color
border-top-color
box-shadow
caret-color
color
column-rule
column-rule-color
filter
opacity
outline-color
outline
text-decoration
text-decoration-color
text-shadow
https://www.quackit.com/css/css_color_codes.cfm 11/13
2/12/2018 CSS Color Codes
Quackit on Facebook
https://www.quackit.com/css/css_color_codes.cfm 13/13