RGB to HEX: #71717A

Also known as: Tailwind v3 zinc-500

Result

rgb(113 113 122) → #71717A

Values are shown at full precision, so converting back gives exactly #71717a. 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. 1. base 10 → base 16

    R = 113 = 7×16 + 1 → 71
    G = 113 = 7×16 + 1 → 71
    B = 122 = 7×16 + 10 → 7A
  2. 2. pairs → HEX

    71 71 7A → #71717A

All formats

HEX
#71717a
RGB
rgb(113 113 122)
RGB (legacy)
rgb(113, 113, 122)
HSL
hsl(240.00 3.83% 46.08%) → hsl(240 4% 46%)
HWB
hwb(240 44% 52%)
OKLCH
oklch(0.552 0.014 285.9) · oklch(55.2% 0.014 285.9)
OKLab
oklab(0.552 0.004 -0.013)
Lab (D50)
lab(47.87 1.42 -4.99)
LCH (D50)
lch(47.87 5.19 285.84)
Display P3
color(display-p3 0.4431 0.4431 0.4754)
Linear sRGB
color(srgb-linear 0.1651 0.1651 0.1946)

Gamut: sRGB and Display P3

#71717A 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.281; this color uses 5% of the sRGB chroma available.

CSS snippets

.element {
  color: #71717a;
  color: rgb(113 113 122);
  color: hsl(240 4% 46%);
  color: oklch(0.552 0.014 285.9);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.552 0.014 285.9);
}
/* arbitrary values */
class="text-[#71717a] bg-[oklch(0.552_0.014_285.9)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.4431 0.4431 0.4754); }
}

/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #71717a calc(l - 0.1) c h); }

Nearby colors

Closest colors in the Tailwind and CSS named palettes (OKLab distance).

Lighter and darker, same hue and chroma

  • #83838C · oklch(0.612 0.014 285.9) · ΔL +0.06
  • #606069 · oklch(0.492 0.014 285.9) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?