HEX to HSL: #78716C

Also known as: Tailwind v3 stone-500

Result

#78716C → hsl(25 5% 45%)

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

    R = 0.4706
    G = 0.4431
    B = 0.4235
  2. 2. max, min, Δ

    max = 0.4706
    min = 0.4235
    Δ = max − min = 0.0471
  3. 3. L

    L = (max + min) / 2 = 0.4471 = 44.71%
  4. 4. S

    S = Δ / (1 − |2L − 1|) = 0.0526 = 5.26%
  5. 5. H

    max is R → H = 60° × (((G − B) / Δ) mod 6) = 60° × (((0.4431 − 0.4235) / 0.0471) mod 6) = 25.00°
  6. 6. HSL

    hsl(25.00 5.26% 44.71%)

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?