HTML named color

Black color code

Use the Black HTML color with HEX #000000, RGB 0,0,0 and HSL 0,0%,0%. Copy CSS examples, shades and accessible contrast combinations.

Open in color pickerCheck contrast
Neutres
#000000
rgb(0,0,0)
HEX
#000000
RGB
rgb(0,0,0)
HSL
hsl(0,0%,0%)
CSS name
black

CSS examples

.text-black {
  color: #000000;
}

.bg-black {
  background-color: black;
}

.border-black {
  border-color: rgb(0,0,0);
}

Shades palette

#1F1414#462F2F#714B4B#996666#B48E8E#D0B9B9#EBE0E0

Related HTML colors

White
#FFFFFF
WhiteSmoke
#F5F5F5
Gainsboro
#DCDCDC
Silver
#C0C0C0
Gray
#808080
DimGray
#696969
SlateGray
#708090
DarkGray
#A9A9A9