HEX to OKLCH: #7C6D67
Also known as: Tailwind taupe-500
Result
#7C6D67 → oklch(0.547 0.021 43.1)
Values are shown at full precision, so converting back gives exactly #7c6d67. 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: 124/255 = 0.48627 → 0.201556 (((x + 0.055) / 1.055)^2.4) G: 109/255 = 0.42745 → 0.152926 (((x + 0.055) / 1.055)^2.4) B: 103/255 = 0.40392 → 0.135633 (((x + 0.055) / 1.055)^2.4)
2. linear sRGB → LMS
l = 0.4122·R + 0.5363·G + 0.0514·B = 0.172083 m = 0.2119·R + 0.6807·G + 0.1074·B = 0.161374 s = 0.0883·R + 0.2817·G + 0.6300·B = 0.146326
3. cube root
l′ = ∛0.172083 = 0.556219 m′ = ∛0.161374 = 0.544433 s′ = ∛0.146326 = 0.526956
4. LMS′ → Oklab
L = 0.2105·l′ + 0.7936·m′ − 0.0041·s′ = 0.54698 a = 1.9780·l′ − 2.4286·m′ + 0.4506·s′ = 0.01544 b = 0.0259·l′ + 0.7828·m′ − 0.8087·s′ = 0.01444
5. Oklab → OKLCH
C = √(a² + b²) = 0.02114 H = atan2(b, a) = 43.085° L = 0.54698
6. OKLCH
oklch(0.54698 0.02114 43.085) rounded: oklch(0.547 0.021 43.1)
All formats
- HEX
- #7c6d67
- RGB
- rgb(124 109 103)
- RGB (legacy)
- rgb(124, 109, 103)
- HSL
- hsl(17.14 9.25% 44.51%) → hsl(17 9% 45%)
- HWB
- hwb(17 40% 51%)
- OKLCH
- oklch(0.547 0.021 43.1) · oklch(54.7% 0.021 43.1)
- OKLab
- oklab(0.547 0.015 0.014)
- Lab (D50)
- lab(47.33 5.30 5.64)
- LCH (D50)
- lch(47.33 7.73 46.79)
- Display P3
- color(display-p3 0.4765 0.4296 0.4073)
- Linear sRGB
- color(srgb-linear 0.2016 0.1529 0.1356)
Gamut: sRGB and Display P3
#7C6D67 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.162 and Display P3 reaches 0.183; this color uses 13% of the sRGB chroma available.
CSS snippets
.element {
color: #7c6d67;
color: rgb(124 109 103);
color: hsl(17 9% 45%);
color: oklch(0.547 0.021 43.1);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.547 0.021 43.1);
}
/* arbitrary values */
class="text-[#7c6d67] bg-[oklch(0.547_0.021_43.1)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.4765 0.4296 0.4073); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #7c6d67 calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- stone-500#79716B
- v3 stone-500#78716C
- neutral-500#737373
- v3 zinc-500#71717A
- zinc-500#71717B
- dimgray#696969
- mauve-500#79697B
- v3 gray-500#6B7280
Lighter and darker, same hue and chroma
- #8E7F78 · oklch(0.607 0.021 43.1) · ΔL +0.06
- #6B5C56 · oklch(0.487 0.021 43.1) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?