CSS Color Codes (2024)

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

More Color Tools

Basic CSS Colors

Here is a table of the basic color names that have been in CSS since CSS1 (except orange, which was added in CSS 2.1).

Try clicking on a value. This will open the color in Quackit's online editor so you can see how it looks (and grab the code). There's also a link to a color tester where you can get another preview of the color.

CSS Color Names

Here is a full list of the CSS named colors as specified in CSS3 (CSS Color Module Level 4). These are based on the X11 color set. The above basic colors are also included in this chart.

Try clicking on a value. This will open the color in Quackit's online editor so you can see how it looks (and grab the code). There's also a link to a color tester where you can get another preview of the color.

Color NameHex Code
RGB
Decimal Code
RGB
Reds
IndianRedCD5C5C205,92,92
LightCoralF08080240,128,128
SalmonFA8072250,128,114
DarkSalmonE9967A233,150,122
LightSalmonFFA07A255,160,122
CrimsonDC143C220,20,60
RedFF0000255,0,0
FireBrickB22222178,34,34
DarkRed8B0000139,0,0
Pinks
PinkFFC0CB255,192,203
LightPinkFFB6C1255,182,193
HotPinkFF69B4255,105,180
DeepPinkFF1493255,20,147
MediumVioletRedC71585199,21,133
PaleVioletRedDB7093219,112,147
Oranges
CoralFF7F50255,127,80
TomatoFF6347255,99,71
OrangeRedFF4500255,69,0
DarkOrangeFF8C00255,140,0
OrangeFFA500255,165,0
Yellows
GoldFFD700255,215,0
YellowFFFF00255,255,0
LightYellowFFFFE0255,255,224
LemonChiffonFFFACD255,250,205
LightGoldenrodYellowFAFAD2250,250,210
PapayaWhipFFEFD5255,239,213
MoccasinFFE4B5255,228,181
PeachPuffFFDAB9255,218,185
PaleGoldenrodEEE8AA238,232,170
KhakiF0E68C240,230,140
DarkKhakiBDB76B189,183,107
Purples
LavenderE6E6FA230,230,250
ThistleD8BFD8216,191,216
PlumDDA0DD221,160,221
VioletEE82EE238,130,238
OrchidDA70D6218,112,214
FuchsiaFF00FF255,0,255
MagentaFF00FF255,0,255
MediumOrchidBA55D3186,85,211
MediumPurple9370DB147,112,219
BlueViolet8A2BE2138,43,226
DarkViolet9400D3148,0,211
DarkOrchid9932CC153,50,204
DarkMagenta8B008B139,0,139
Purple800080128,0,128
RebeccaPurple663399102,51,153
Indigo4B008275,0,130
MediumSlateBlue7B68EE123,104,238
SlateBlue6A5ACD106,90,205
DarkSlateBlue483D8B72,61,139
Color NameHex Code
RGB
Decimal Code
RGB
Greens
GreenYellowADFF2F173,255,47
Chartreuse7FFF00127,255,0
LawnGreen7CFC00124,252,0
Lime00FF000,255,0
LimeGreen32CD3250,205,50
PaleGreen98FB98152,251,152
LightGreen90EE90144,238,144
MediumSpringGreen00FA9A0,250,154
SpringGreen00FF7F0,255,127
MediumSeaGreen3CB37160,179,113
SeaGreen2E8B5746,139,87
ForestGreen228B2234,139,34
Green0080000,128,0
DarkGreen0064000,100,0
YellowGreen9ACD32154,205,50
OliveDrab6B8E23107,142,35
Olive808000128,128,0
DarkOliveGreen556B2F85,107,47
MediumAquamarine66CDAA102,205,170
DarkSeaGreen8FBC8F143,188,143
LightSeaGreen20B2AA32,178,170
DarkCyan008B8B0,139,139
Teal0080800,128,128
Blues/Cyans
Aqua00FFFF0,255,255
Cyan00FFFF0,255,255
LightCyanE0FFFF224,255,255
PaleTurquoiseAFEEEE175,238,238
Aquamarine7FFFD4127,255,212
Turquoise40E0D064,224,208
MediumTurquoise48D1CC72,209,204
DarkTurquoise00CED10,206,209
CadetBlue5F9EA095,158,160
SteelBlue4682B470,130,180
LightSteelBlueB0C4DE176,196,222
PowderBlueB0E0E6176,224,230
LightBlueADD8E6173,216,230
SkyBlue87CEEB135,206,235
LightSkyBlue87CEFA135,206,250
DeepSkyBlue00BFFF0,191,255
DodgerBlue1E90FF30,144,255
CornflowerBlue6495ED100,149,237
RoyalBlue4169E165,105,225
Blue0000FF0,0,255
MediumBlue0000CD0,0,205
DarkBlue00008B0,0,139
Navy0000800,0,128
MidnightBlue19197025,25,112
Color NameHex Code
RGB
Decimal Code
RGB
Browns
CornsilkFFF8DC255,248,220
BlanchedAlmondFFEBCD255,235,205
BisqueFFE4C4255,228,196
NavajoWhiteFFDEAD255,222,173
WheatF5DEB3245,222,179
BurlyWoodDEB887222,184,135
TanD2B48C210,180,140
RosyBrownBC8F8F188,143,143
SandyBrownF4A460244,164,96
GoldenrodDAA520218,165,32
DarkGoldenrodB8860B184,134,11
PeruCD853F205,133,63
ChocolateD2691E210,105,30
SaddleBrown8B4513139,69,19
SiennaA0522D160,82,45
BrownA52A2A165,42,42
Maroon800000128,0,0
Whites
WhiteFFFFFF255,255,255
SnowFFFAFA255,250,250
HoneydewF0FFF0240,255,240
MintCreamF5FFFA245,255,250
AzureF0FFFF240,255,255
AliceBlueF0F8FF240,248,255
GhostWhiteF8F8FF248,248,255
WhiteSmokeF5F5F5245,245,245
SeashellFFF5EE255,245,238
BeigeF5F5DC245,245,220
OldLaceFDF5E6253,245,230
FloralWhiteFFFAF0255,250,240
IvoryFFFFF0255,255,240
AntiqueWhiteFAEBD7250,235,215
LinenFAF0E6250,240,230
LavenderBlushFFF0F5255,240,245
MistyRoseFFE4E1255,228,225
Greys
GainsboroDCDCDC220,220,220
LightGrayD3D3D3211,211,211
LightGreyD3D3D3211,211,211
SilverC0C0C0192,192,192
DarkGrayA9A9A9169,169,169
DarkGreyA9A9A9169,169,169
Gray808080128,128,128
Grey808080128,128,128
DimGray696969105,105,105
DimGrey696969105,105,105
LightSlateGray778899119,136,153
LightSlateGrey778899119,136,153
SlateGray708090112,128,144
SlateGrey708090112,128,144
DarkSlateGray2F4F4F47,79,79
DarkSlateGrey2F4F4F47,79,79
Black0000000,0,0

More Color Charts

How to use these Colors

Each color can be represented in many different ways. For example blue can also be represented as #0000ff, #00f, rgb(0,0,255) and many other ways. It doesn't matter which one you choose as long as it's a valid color.

You can apply any of these colors to a website or blog by using the relevant CSS code.

Take blue for example.

Below are quick CSS code examples for applying this color to various HTML elements.

Check out some basic color code examples using color names in the online editor.

In Hexadecimal Notation

Here is the same color, but this time using hexadecimal notation instead of the color name.

So the color code is now 0000ff.

This needs to be prefixed with a hash symbol, so it will become #0000ff when written in the code.

Check out some basic color code examples using hexadecimal values in the online editor.

In RGB Functional Notation

Here is the same color, but this time using RGB functional notation.

So the color code is now 0,0,255. This needs to be placed inside the rgb() function, so it will look like this rgb(0,0,255).

Check out some basic color code examples using RGB functional notation in the online editor.

Full-Page Example

Here is an example of where CSS color codes can fit into an HTML document.

This example uses embedded style sheets. You can also move the styles to an external style sheet so that you can apply the styles across the whole site from one file.

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.

Here's an example of adding transparency to a color using the rgba() function.

List of Color Values

Here's a list of color values you can use with CSS.

  • CSS Named Colors
  • CSS transparent Keyword
  • CSS currentcolor Keyword
  • CSS 3-Digit Hex Codes
  • CSS 4-Digit Hex Codes
  • CSS 6-Digit Hex Codes
  • CSS 8-Digit Hex Codes
  • CSS rgb() Function
  • CSS rgba() Function
  • CSS hsl() Function
  • CSS hsla() Function
  • CSS hwb() Function
  • CSS System Colors
  • List of Color Properties

    Here's a list of color-related properties you can use with CSS.

  • 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
  • Web Safe Colors

    This chart displays the 216 "web safe" colors. Click on a color to display it in a new page.

    With current day monitors being able to display millions of colors, there's little need to use the web safe colors any more. But it's a great way to pick some basic colors nice and quickly. And hey, it's still a nice looking chart!

    #FFFFFF#FFFFCC#FFFF99#FFFF66#FFFF33#FFFF00
    #FFCCFF#FFCCCC#FFCC99#FFCC66#FFCC33#FFCC00
    #FF99FF#FF99CC#FF9999#FF9966#FF9933#FF9900
    #FF66FF#FF66CC#FF6699#FF6666#FF6633#FF6600
    #FF33FF#FF33CC#FF3399#FF3366#FF3333#FF3300
    #FF00FF#FF00CC#FF0099#FF0066#FF0033#FF0000
    #CCFFFF#CCFFCC#CCFF99#CCFF66#CCFF33#CCFF00
    #CCCCFF#CCCCCC#CCCC99#CCCC66#CCCC33#CCCC00
    #CC99FF#CC99CC#CC9999#CC9966#CC9933#CC9900
    #CC66FF#CC66CC#CC6699#CC6666#CC6633#CC6600
    #CC33FF#CC33CC#CC3399#CC3366#CC3333#CC3300
    #CC00FF#CC00CC#CC0099#CC0066#CC0033#CC0000
    #99FFFF#99FFCC#99FF99#99FF66#99FF33#99FF00
    #99CCFF#99CCCC#99CC99#99CC66#99CC33#99CC00
    #9999FF#9999CC#999999#999966#999933#999900
    #9966FF#9966CC#996699#996666#996633#996600
    #9933FF#9933CC#993399#993366#993333#993300
    #9900FF#9900CC#990099#990066#990033#990000
    #66FFFF#66FFCC#66FF99#66FF66#66FF33#66FF00
    #66CCFF#66CCCC#66CC99#66CC66#66CC33#66CC00
    #6699FF#6699CC#669999#669966#669933#669900
    #6666FF#6666CC#666699#666666#666633#666600
    #6633FF#6633CC#663399#663366#663333#663300
    #6600FF#6600CC#660099#660066#660033#660000
    #33FFFF#33FFCC#33FF99#33FF66#33FF33#33FF00
    #33CCFF#33CCCC#33CC99#33CC66#33CC33#33CC00
    #3399FF#3399CC#339999#339966#339933#339900
    #3366FF#3366CC#336699#336666#336633#336600
    #3333FF#3333CC#333399#333366#333333#333300
    #3300FF#3300CC#330099#330066#330033#330000
    #00FFFF#00FFCC#00FF99#00FF66#00FF33#00FF00
    #00CCFF#00CCCC#00CC99#00CC66#00CC33#00CC00
    #0099FF#0099CC#009999#009966#009933#009900
    #0066FF#0066CC#006699#006666#006633#006600
    #0033FF#0033CC#003399#003366#003333#003300
    #0000FF#0000CC#000099#000066#000033#000000
    CSS Color Codes (2024)
    Top Articles
    Latest Posts
    Article information

    Author: Amb. Frankie Simonis

    Last Updated:

    Views: 6281

    Rating: 4.6 / 5 (76 voted)

    Reviews: 91% of readers found this page helpful

    Author information

    Name: Amb. Frankie Simonis

    Birthday: 1998-02-19

    Address: 64841 Delmar Isle, North Wiley, OR 74073

    Phone: +17844167847676

    Job: Forward IT Agent

    Hobby: LARPing, Kitesurfing, Sewing, Digital arts, Sand art, Gardening, Dance

    Introduction: My name is Amb. Frankie Simonis, I am a hilarious, enchanting, energetic, cooperative, innocent, cute, joyous person who loves writing and wants to share my knowledge and understanding with you.