Color reference

Black #000000

Black is the standard CSS named color #000000, with all three sRGB channels at zero.

Black is the CSS named color keyword black, standardized at #000000 in sRGB.

Black #000000 21.00:1 with white text

Color values

HEX#000000
RGBrgb(0, 0, 0)
HSLhsl(0 0% 0%)
HSV0°, 0%, 0%
CMYK0%, 0%, 0%, 100%

HEX/RGB/HSL/HSV are deterministic sRGB representations. CMYK here is a mathematical approximation, not a printer-profile conversion.

Black or white text?

Black text 1.00:1 — AA normal text fails
White text 21.00:1 — AA normal text passes

AA normal text: black fails; white passes.

AA large text: black fails; white passes.

WCAG contrast thresholds use 4.5:1 for normal text and 3:1 for large text. Do not round a near-threshold result upward when testing conformance.

Tints and shades of Black

These steps are computed by RGB-mixing #000000 toward white or black. They are generated values, not official named colors.

80% tint #CCCCCC
60% tint #999999
40% tint #666666
20% tint #333333
Base #000000
20% shade #000000
40% shade #000000
60% shade #000000
80% shade #000000

Need more control? Use the Tints and Shades Generator or Lighten / Darken tool.

CSS usage

.example {
  color: #FFFFFF;
  background-color: black;
}

You can use either black or #000000 in CSS; both resolve to the same sRGB color.