Black to RGB — Color Code

RGB

rgb(0, 0, 0)

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

Related calculators

What is the RGB code for black?

The CSS color black in RGB format is rgb(0, 0, 0). 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: rgb(0, 0, 0);
  • Background: background-color: rgb(0, 0, 0);
  • Border: border-color: rgb(0, 0, 0);

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 RGB?

Select black from the color name list in our color converter. The RGB value — rgb(0, 0, 0) — 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 RGB used for?

RGB defines colors using three values from 0 to 255 — red, green and blue intensity. It is the native format for screens, monitors and web browsers.