Toolman

black — #000000

#000000

rgb(0, 0, 0) · hsl(0, 0%, 0%) · CSS keyword black

Can you put text on it?

ContrastBody textLarge text
black on white21:1AAAA
black on black1:1

As a background, black takes white text: 21:1 against 1:1 the other way. A colour picker will give you the hex and stop there, which is why so many palettes look right and fail an accessibility audit.

Using it

color: black;
color: #000000;
color: rgb(0 0 0);

All three are the same colour. The keyword is one of the 141 CSS named colours — a list settled in CSS 2.1 and added to exactly once since, when rebeccapurple was standardised in 2014.

Colours close to black

Frequently asked questions

What is the hex code for black?

The hex code for black is #000000 — RGB 0, 0, 0.

Can I use black for text?

Yes. black reaches 21:1 against white, past the 4.5:1 that WCAG AA asks for body text.

Should text on black be black or white?

White — 21:1 against 1:1 the other way.

Other named colours

#000000 in full — tints, shades and harmonies · All named colours · Colour reference