black

#000000 · CSS color name

black is the CSS color name for #000000: RGB(0, 0, 0), HSL(0°, 0%, 0%), CMYK(0%, 0%, 0%, 100%). Contrast is 21:1 on white and 1:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#000000
CSS color nameblack
HEX (3)#000
RGBrgb(0 0 0)
RGB (legacy)rgb(0, 0, 0)
RGB %rgb(0% 0% 0%)
HSLhsl(0 0% 0%)
HSV / HSBhsv(0, 0%, 0%)
HWBhwb(0 0% 100%)
CMYKcmyk(0%, 0%, 0%, 100%)
CIELAB (D50)lab(0 0 0)
LCHlch(0 0 0)
OKLaboklab(0 0 0)
OKLCHoklch(0 0 0)
Decimal0

Properties

Color ToneBlack, Gray, White
Closest named colorblack ΔE 0
Closest web-safe color#000000
Hue0°
Saturation (HSL / HSV)0% / 0%
Lightness (HSL)0%
Brightness or Value (HSV)0%
Luminance (Rec.601 / Rec.709)0% / 0%
Relative luminance (WCAG)0
Red / Green / Blue0 / 0 / 0

WCAG 2.2 Contrast Ratio

On White (#ffffff)
21.00:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
1.00:1
AA Normal (4.5:1) · FailAA Large (3:1) · FailAAA Normal (7:1) · Fail
Aa Bb 123

APCA Contrast Lc (reference) — As text on white / black: Lc 106 / 0 · As background with white / black text: Lc -107.9 / 0

Lightness Scale (OKLCH 50–950)

Eleven steps that change only perceived lightness while keeping hue and chroma — ready to use as design-system color tokens.

Tints (mixed with white)

Shades (mixed with black)

Color Harmonies

Color Vision Deficiency Simulation

Estimated appearance of this color for people with color vision deficiencies (Machado 2009).

Similar Named Colors

Use in CSS

:root {
  --color-black: #000000;
  --color-black-oklch: oklch(0% 0 0);
}
.text { color: var(--color-black); }
.background { background-color: var(--color-black); }
.border { border: 1px solid rgb(0 0 0 / 50%); }
/* Tailwind CSS */
<div class="bg-[#000000] text-[#000000] border-[#000000]">