HEX to RGB: #78716C

Also known as: Tailwind v3 stone-500

Result

#78716C → rgb(120 113 108)

Values are shown at full precision, so converting back gives exactly #78716c. 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. HEX → pairs

    #78716C → 78 | 71 | 6C
  2. 2. base 16 → base 10

    R = 78₁₆ = 7×16 + 8 = 120
    G = 71₁₆ = 7×16 + 1 = 113
    B = 6C₁₆ = 6×16 + 12 = 108
  3. 3. RGB

    rgb(120 113 108)

All formats

HEX
#78716c
RGB
rgb(120 113 108)
RGB (legacy)
rgb(120, 113, 108)
HSL
hsl(25.00 5.26% 44.71%) → hsl(25 5% 45%)
HWB
hwb(25 42% 53%)
OKLCH
oklch(0.553 0.012 58.1) · oklch(55.3% 0.012 58.1)
OKLab
oklab(0.553 0.006 0.010)
Lab (D50)
lab(48.17 2.10 3.81)
LCH (D50)
lch(48.17 4.35 61.14)
Display P3
color(display-p3 0.4659 0.4441 0.4258)
Linear sRGB
color(srgb-linear 0.1878 0.1651 0.1500)

Gamut: sRGB and Display P3

#78716C is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.132 and Display P3 reaches 0.151; this color uses 9% of the sRGB chroma available.

CSS snippets

.element {
  color: #78716c;
  color: rgb(120 113 108);
  color: hsl(25 5% 45%);
  color: oklch(0.553 0.012 58.1);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.553 0.012 58.1);
}
/* arbitrary values */
class="text-[#78716c] bg-[oklch(0.553_0.012_58.1)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.4659 0.4441 0.4258); }
}

/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #78716c 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

  • #8A837D · oklch(0.613 0.012 58.1) · ΔL +0.06
  • #67605B · oklch(0.493 0.012 58.1) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?