Black Color — HEX, RGB, HSL & CMYK Codes

#000000
Format Value
HEX #000000
RGB rgb(0, 0, 0)
HSL hsl(0, 0%, 0%)
CMYK cmyk(0%, 0%, 0%, 100%)
HSV hsv(0, 0%, 0%)

black color harmonies

Tints & shades of black

Tints (lighter)

#171717 #2e2e2e #464646 #5d5d5d #747474 #8b8b8b #a2a2a2 #b9b9b9 #d1d1d1 #e8e8e8

Shades (darker)

#000000 #000000 #000000 #000000 #000000 #000000 #000000 #000000 #000000 #000000

Contrast & accessibility

The quick brown fox

On white · 21:1 · AAA

The quick brown fox

On black · 1:1 · Fail

Recommended text color: #ffffff

Use black in code

CSS color: #000000;
SCSS $color: #000000;
Tailwind bg-[#000000]
Swift UIColor(red: 0.000, green: 0.000, blue: 0.000, alpha: 1)
Android Color.parseColor("#000000")
Flutter Color(0xFF000000)

Colors similar to black

Browse all Gray & neutral colors →

What is the HEX code for black?

The CSS color black in HEX format is #000000. Use this value directly in CSS, SVG, and most design tools.

How do I use black in CSS?

To apply black in CSS:

  • Text color: color: #000000;
  • Background: background-color: #000000;
  • Border: border-color: #000000;

What are all the color format values for black?

FormatValue
HEX#000000
RGBrgb(0, 0, 0)
HSLhsl(0, 0%, 0%)
CMYKcmyk(0%, 0%, 0%, 100%)

How do I convert black to HEX?

Select black from the color name list in our color converter. The HEX value — #000000 — appears instantly alongside HEX, RGB, HSL and CMYK.

What color family does black belong to?

black belongs to the neutral (gray) color family. It is a dark, muted color with HSL values: hue 0°, saturation 0%, lightness 0%.

How do I create lighter and darker shades of black?

Lighter variant (lightness 15%): #262626. Darker variant (lightness 5%): #0d0d0d. These values are computed by adjusting HSL lightness ±15% while keeping the same hue and saturation.

What is HEX used for?

HEX color codes are used in CSS, HTML and design tools. They encode red, green and blue as two hexadecimal digits each (00–FF), forming a compact 6-character code like #ff0000.