HEX to HSL: #71717B

Also known as: Tailwind zinc-500

Result

#71717B → hsl(240 4% 46%)

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. 1. RGB ÷ 255

    R = 0.4431
    G = 0.4431
    B = 0.4824
  2. 2. max, min, Δ

    max = 0.4824
    min = 0.4431
    Δ = max − min = 0.0392
  3. 3. L

    L = (max + min) / 2 = 0.4627 = 46.27%
  4. 4. S

    S = Δ / (1 − |2L − 1|) = 0.0424 = 4.24%
  5. 5. H

    max is B → H = 60° × ((R − G) / Δ + 4) = 60° × ((0.4431 − 0.4431) / 0.0392 + 4) = 240.00°
  6. 6. HSL

    hsl(240.00 4.24% 46.27%)

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).

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

All converters →

Guides: What is OKLCH?