black black #000000
black is #000000 in hexadecimal, rgb(0, 0, 0) in decimal and hsl(0, 0, 0) in HSL. This page lists its harmonies, lightness steps and contrast against black and white — all copyable.
HEX · RGB · HSL
| HEX | #000000 |
| RGB | rgb(0, 0, 0) |
| HSL | hsl(0, 0%, 0%) |
Harmonies
Complementary
Tints & shades
#0a0a0a#0a0a0a#0a0a0a#0a0a0a#0a0a0aAccessibility
| vs #ffffff | 21:1 |
| vs #000000 | 1:1 |
| Suggested text color | #ffffff · 21:1 · WCAG AAA |
Similar named colors
FAQ
What is the HEX code for black?
black is #000000 in hex, rgb(0, 0, 0) in decimal and hsl(0, 0%, 0%) in HSL. In CSS you can write either color: black; or color: #000000; — they are equivalent.
What colors go with black?
The complementary #000000 gives the strongest contrast, the analogous pair #000000 / #000000 is the safest, and the triad #000000 / #000000 adds more tension. All three are derived from the 0° hue of #000000.
Does #000000 read better on white or black?
Its contrast is 21:1 against white and 1:1 against black. Use #ffffff text on it — that gives 21:1, which meets WCAG AAA.
Is a named color different from a hex color?
No. CSS named colors are just syntactic sugar for standard six-digit hex values; browsers resolve them to identical results in every modern engine.