HSL to HEX: #78716C
Also known as: Tailwind v3 stone-500
Result
hsl(25.00 5.26% 44.71%) → #78716C
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. input
H = 25.00°, S = 5.26%, L = 44.71%
2. C
C = (1 − |2L − 1|) × S = 0.04703
3. X
X = C × (1 − |(H / 60°) mod 2 − 1|) = 0.01960 (H / 60° = 0.4167, sector 0)
4. m
m = L − C / 2 = 0.42358
5. (R′, G′, B′) + m
(R′, G′, B′) = (0.04703, 0.01960, 0.00000) R = round((0.04703 + 0.42358) × 255) = 120 G = round((0.01960 + 0.42358) × 255) = 113 B = round((0.00000 + 0.42358) × 255) = 108
6. RGB → HEX
#78716C
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?