HEX to OKLCH: #79716B
Also known as: Tailwind stone-500
Result
#79716B → oklch(0.554 0.014 59.4)
Values are shown at full precision, so converting back gives exactly #79716b. 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: 121/255 = 0.47451 → 0.191202 (((x + 0.055) / 1.055)^2.4) G: 113/255 = 0.44314 → 0.165132 (((x + 0.055) / 1.055)^2.4) B: 107/255 = 0.41961 → 0.147027 (((x + 0.055) / 1.055)^2.4)
2. linear sRGB → LMS
l = 0.4122·R + 0.5363·G + 0.0514·B = 0.174947 m = 0.2119·R + 0.6807·G + 0.1074·B = 0.168712 s = 0.0883·R + 0.2817·G + 0.6300·B = 0.156028
3. cube root
l′ = ∛0.174947 = 0.559288 m′ = ∛0.168712 = 0.552563 s′ = ∛0.156028 = 0.538354
4. LMS′ → Oklab
L = 0.2105·l′ + 0.7936·m′ − 0.0041·s′ = 0.55404 a = 1.9780·l′ − 2.4286·m′ + 0.4506·s′ = 0.00690 b = 0.0259·l′ + 0.7828·m′ − 0.8087·s′ = 0.01166
5. Oklab → OKLCH
C = √(a² + b²) = 0.01355 H = atan2(b, a) = 59.397° L = 0.55404
6. OKLCH
oklch(0.55404 0.01355 59.397) rounded: oklch(0.554 0.014 59.4)
All formats
- HEX
- #79716b
- RGB
- rgb(121 113 107)
- RGB (legacy)
- rgb(121, 113, 107)
- HSL
- hsl(25.71 6.14% 44.71%) → hsl(26 6% 45%)
- HWB
- hwb(26 42% 53%)
- OKLCH
- oklch(0.554 0.014 59.4) · oklch(55.4% 0.014 59.4)
- OKLab
- oklab(0.554 0.007 0.012)
- Lab (D50)
- lab(48.24 2.37 4.51)
- LCH (D50)
- lch(48.24 5.10 62.29)
- Display P3
- color(display-p3 0.4691 0.4442 0.4224)
- Linear sRGB
- color(srgb-linear 0.1912 0.1651 0.1470)
Gamut: sRGB and Display P3
#79716B is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.131 and Display P3 reaches 0.149; this color uses 10% of the sRGB chroma available.
CSS snippets
.element {
color: #79716b;
color: rgb(121 113 107);
color: hsl(26 6% 45%);
color: oklch(0.554 0.014 59.4);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.554 0.014 59.4);
}
/* arbitrary values */
class="text-[#79716b] bg-[oklch(0.554_0.014_59.4)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.4691 0.4442 0.4224); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #79716b calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- v3 stone-500#78716C
- taupe-500#7C6D67
- neutral-500#737373
- v3 zinc-500#71717A
- zinc-500#71717B
- mist-500#67787C
- olive-500#7C7C67
- dimgray#696969
Lighter and darker, same hue and chroma
- #8B837C · oklch(0.614 0.014 59.4) · ΔL +0.06
- #68605A · oklch(0.494 0.014 59.4) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?