RGB to HEX: #71717B
Also known as: Tailwind zinc-500
Result
rgb(113 113 123) → #71717B
Values are shown at full precision, so converting back gives exactly #71717b. 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. base 10 → base 16
R = 113 = 7×16 + 1 → 71 G = 113 = 7×16 + 1 → 71 B = 123 = 7×16 + 11 → 7B
2. pairs → HEX
71 71 7B → #71717B
All formats
- HEX
- #71717b
- RGB
- rgb(113 113 123)
- RGB (legacy)
- rgb(113, 113, 123)
- HSL
- hsl(240.00 4.24% 46.27%) → hsl(240 4% 46%)
- HWB
- hwb(240 44% 52%)
- OKLCH
- oklch(0.552 0.015 285.9) · oklch(55.2% 0.015 285.9)
- OKLab
- oklab(0.552 0.004 -0.015)
- Lab (D50)
- lab(47.90 1.58 -5.54)
- LCH (D50)
- lch(47.90 5.76 285.90)
- Display P3
- color(display-p3 0.4431 0.4431 0.4790)
- Linear sRGB
- color(srgb-linear 0.1651 0.1651 0.1981)
Gamut: sRGB and Display P3
#71717B is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.261 and Display P3 reaches 0.280; this color uses 6% of the sRGB chroma available.
CSS snippets
.element {
color: #71717b;
color: rgb(113 113 123);
color: hsl(240 4% 46%);
color: oklch(0.552 0.015 285.9);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.552 0.015 285.9);
}
/* arbitrary values */
class="text-[#71717b] bg-[oklch(0.552_0.015_285.9)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.4431 0.4431 0.4790); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #71717b calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- v3 zinc-500#71717A
- v3 gray-500#6B7280
- gray-500#6A7282
- neutral-500#737373
- mist-500#67787C
- v3 stone-500#78716C
- mauve-500#79697B
- stone-500#79716B
Lighter and darker, same hue and chroma
- #83838D · oklch(0.612 0.015 285.9) · ΔL +0.06
- #60606A · oklch(0.492 0.015 285.9) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?