OKLCH to HEX: #71717A

Also known as: Tailwind v3 zinc-500

Result

oklch(0.55166 0.01381 285.938) → #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. input

    oklch(0.55166 0.01381 285.938)
  2. 2. OKLCH → Oklab

    a = C·cos H = 0.00379
    b = C·sin H = -0.01328
  3. 3. Oklab → LMS′

    l′ = L + 0.3963·a + 0.2158·b = 0.550297
    m′ = L − 0.1056·a − 0.0639·b = 0.552108
    s′ = L − 0.0895·a − 1.2915·b = 0.568470
  4. 4. cube

    l = 0.550297³ = 0.166645
    m = 0.552108³ = 0.168295
    s = 0.568470³ = 0.183706
  5. 5. LMS → linear sRGB

    R = 4.0767·l − 3.3077·m + 0.2310·s = 0.165128
    G = −1.2684·l + 2.6098·m − 0.3413·s = 0.165128
    B = −0.0042·l − 0.7034·m + 1.7076·s = 0.194618
  6. 6. linear → sRGB, × 255

    R = 0.44313 × 255 = 113.00 → 113
    G = 0.44313 × 255 = 113.00 → 113
    B = 0.47843 × 255 = 122.00 → 122
  7. 7. RGB → HEX

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