OKLCH to HEX: #79697B
Also known as: Tailwind mauve-500
Result
oklch(0.54206 0.03367 322.504) → #79697B
Values are shown at full precision, so converting back gives exactly #79697b. 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
oklch(0.54206 0.03367 322.504)
2. OKLCH → Oklab
a = C·cos H = 0.02671 b = C·sin H = -0.02050
3. Oklab → LMS′
l′ = L + 0.3963·a + 0.2158·b = 0.548225 m′ = L − 0.1056·a − 0.0639·b = 0.540549 s′ = L − 0.0895·a − 1.2915·b = 0.566139
4. cube
l = 0.548225³ = 0.164769 m = 0.540549³ = 0.157945 s = 0.566139³ = 0.181455
5. LMS → linear sRGB
R = 4.0767·l − 3.3077·m + 0.2310·s = 0.191197 G = −1.2684·l + 2.6098·m − 0.3413·s = 0.141264 B = −0.0042·l − 0.7034·m + 1.7076·s = 0.198062
6. linear → sRGB, × 255
R = 0.47450 × 255 = 121.00 → 121 G = 0.41177 × 255 = 105.00 → 105 B = 0.48235 × 255 = 123.00 → 123
7. RGB → HEX
#79697B
All formats
- HEX
- #79697b
- RGB
- rgb(121 105 123)
- RGB (legacy)
- rgb(121, 105, 123)
- HSL
- hsl(293.33 7.89% 44.71%) → hsl(293 8% 45%)
- HWB
- hwb(293 41% 52%)
- OKLCH
- oklch(0.542 0.034 322.5) · oklch(54.2% 0.034 322.5)
- OKLab
- oklab(0.542 0.027 -0.020)
- Lab (D50)
- lab(46.42 9.16 -7.61)
- LCH (D50)
- lch(46.42 11.91 320.27)
- Display P3
- color(display-p3 0.4641 0.4140 0.4775)
- Linear sRGB
- color(srgb-linear 0.1912 0.1413 0.1981)
Gamut: sRGB and Display P3
#79697B is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.257 and Display P3 reaches 0.278; this color uses 13% of the sRGB chroma available.
CSS snippets
.element {
color: #79697b;
color: rgb(121 105 123);
color: hsl(293 8% 45%);
color: oklch(0.542 0.034 322.5);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.542 0.034 322.5);
}
/* arbitrary values */
class="text-[#79697b] bg-[oklch(0.542_0.034_322.5)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.4641 0.4140 0.4775); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #79697b calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- zinc-500#71717B
- v3 zinc-500#71717A
- v3 gray-500#6B7280
- gray-500#6A7282
- neutral-500#737373
- taupe-500#7C6D67
- v3 stone-500#78716C
- stone-500#79716B
Lighter and darker, same hue and chroma
- #8B7A8D · oklch(0.602 0.034 322.5) · ΔL +0.06
- #68586A · oklch(0.482 0.034 322.5) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?