Black
Hex #000000, rgb(0 0 0). A gray or black CSS named color.
Open in palette generatorBlack color codes
Click any value to copy it.
- HEX
- RGB
- HSL
- HSV
- HWB
- CMYK
- OKLCH
- OKLab
- Lab
- LCH
- CSS keyword
About Black
Black is a very dark neutral gray with the hex code #000000. In RGB it is made of 0 red, 0 green and 0 blue; in HSL its hue is 0°, with 0% saturation and 0% lightness. Its perceptual lightness (OKLCH L) is 0.0%.
It is a CSS named color, so you can write "black" anywhere CSS accepts a color. Against white it has a contrast ratio of 21.00:1 and against black 1.00:1, so white text reads better on it and passes WCAG AA for normal text.
Tints, shades and tones
Black mixed step by step with white, black and middle gray (#808080).
Tints (with white)
Shades (with black)
Tones (with gray)
Black 50-950 scale
A Tailwind-style scale built in OKLCH; the original color sits on the step with the closest lightness.
Colors that go with Black
Color harmonies rotate the hue in OKLCH and keep the lightness and chroma. Each color links to its closest named color.
Contrast and readability
WCAG 2 contrast of Black with white and black. The readable text color on Black is white.
On white21.00:1
- AA pass
- AA Large pass
- AAA pass
- UI 3:1 pass
APCA Lc 106
On black1.00:1
- AA fail
- AA Large fail
- AAA fail
- UI 3:1 fail
APCA Lc 0
Test any pair in the contrast checker.
Color blindness preview
How Black appears with each type of color vision deficiency (simulated with the Machado model).
- Protanopia#000000
- Deuteranopia#000000
- Tritanopia#000000
- Protanomaly#000000
- Deuteranomaly#000000
- Tritanomaly#000000
- Achromatopsia#000000
Colors similar to Black
The closest named colors by perceptual difference (OKLab).
Use Black in CSS and Tailwind
.black {
color: black; /* #000000 */
background-color: rgb(0 0 0);
border-color: oklch(0% 0 0);
}/* Tailwind CSS v4: bg-black-500, text-black-700... */
@theme {
--color-black-50: #FAFAFA;
--color-black-100: #EAEAEA;
--color-black-200: #D3D3D3;
--color-black-300: #B1B1B1;
--color-black-400: #858585;
--color-black-500: #6A6A6A;
--color-black-600: #535353;
--color-black-700: #383838;
--color-black-800: #232323;
--color-black-900: #141414;
--color-black-950: #000000;
}
<!-- or the exact color, no config -->
<div class="bg-[#000000] text-[#FFFFFF]">…</div>