HEX to RGB: #000000
Also known as: CSS black
Result
#000000 → rgb(0 0 0)
Values are shown at full precision, so converting back gives exactly #000000. The rounded form is what you normally paste into CSS.
Step-by-step math
Every number below is computed from the input, nothing is looked up.
1. HEX → pairs
#000000 → 00 | 00 | 00
2. base 16 → base 10
R = 00₁₆ = 0×16 + 0 = 0 G = 00₁₆ = 0×16 + 0 = 0 B = 00₁₆ = 0×16 + 0 = 0
3. RGB
rgb(0 0 0)
All formats
- HEX
- #000000
- RGB
- rgb(0 0 0)
- RGB (legacy)
- rgb(0, 0, 0)
- HSL
- hsl(0.00 0.00% 0.00%) → hsl(0 0% 0%)
- HWB
- hwb(0 0% 100%)
- OKLCH
- oklch(0.000 0.000 0.0) · oklch(0.0% 0.000 0.0)
- OKLab
- oklab(0.000 0.000 0.000)
- Lab (D50)
- lab(0.00 0.00 0.00)
- LCH (D50)
- lch(0.00 0.00 0.00)
- Display P3
- color(display-p3 0.0000 0.0000 0.0000)
- Linear sRGB
- color(srgb-linear 0.0000 0.0000 0.0000)
Gamut: sRGB and Display P3
#000000 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.000 and Display P3 reaches 0.000; this color uses 0% of the sRGB chroma available.
CSS snippets
.element {
color: #000000;
color: rgb(0 0 0);
color: hsl(0 0% 0%);
color: oklch(0.000 0.000 0.0);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.000 0.000 0.0);
}
/* arbitrary values */
class="text-[#000000] bg-[oklch(0.000_0.000_0.0)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.0000 0.0000 0.0000); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #000000 calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- gray-950#030712
- v3 slate-950#020617
- slate-950#020618
- zinc-950#09090B
- neutral-950#0A0A0A
- mauve-950#0C090C
- stone-950#0C0A09
- mist-950#090B0C
Lighter and darker, same hue and chroma
- #010101 · oklch(0.060 0.000 0.0) · ΔL +0.06
- #000000 · oklch(0.000 0.000 0.0) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?