HEX to OKLCH: #78716C
Also known as: Tailwind v3 stone-500
Result
#78716C → oklch(0.553 0.012 58.1)
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. sRGB → linear
R: 120/255 = 0.47059 → 0.187821 (((x + 0.055) / 1.055)^2.4) G: 113/255 = 0.44314 → 0.165132 (((x + 0.055) / 1.055)^2.4) B: 108/255 = 0.42353 → 0.149960 (((x + 0.055) / 1.055)^2.4)
2. linear sRGB → LMS
l = 0.4122·R + 0.5363·G + 0.0514·B = 0.173704 m = 0.2119·R + 0.6807·G + 0.1074·B = 0.168311 s = 0.0883·R + 0.2817·G + 0.6300·B = 0.157577
3. cube root
l′ = ∛0.173704 = 0.557961 m′ = ∛0.168311 = 0.552125 s′ = ∛0.157577 = 0.540130
4. LMS′ → Oklab
L = 0.2105·l′ + 0.7936·m′ − 0.0041·s′ = 0.55340 a = 1.9780·l′ − 2.4286·m′ + 0.4506·s′ = 0.00614 b = 0.0259·l′ + 0.7828·m′ − 0.8087·s′ = 0.00985
5. Oklab → OKLCH
C = √(a² + b²) = 0.01161 H = atan2(b, a) = 58.071° L = 0.55340
6. OKLCH
oklch(0.55340 0.01161 58.071) rounded: oklch(0.553 0.012 58.1)
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).
- stone-500#79716B
- neutral-500#737373
- taupe-500#7C6D67
- v3 zinc-500#71717A
- zinc-500#71717B
- mist-500#67787C
- v3 gray-500#6B7280
- dimgray#696969
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
Guides: What is OKLCH?