OKLCH to HEX: #474739
Also known as: Tailwind olive-700
Result
oklch(0.39353 0.02271 107.399) → #474739
Values are shown at full precision, so converting back gives exactly #474739. 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.39353 0.02271 107.399)
2. OKLCH → Oklab
a = C·cos H = -0.00679 b = C·sin H = 0.02167
3. Oklab → LMS′
l′ = L + 0.3963·a + 0.2158·b = 0.395515 m′ = L − 0.1056·a − 0.0639·b = 0.392863 s′ = L − 0.0895·a − 1.2915·b = 0.366150
4. cube
l = 0.395515³ = 0.061871 m = 0.392863³ = 0.060635 s = 0.366150³ = 0.049088
5. LMS → linear sRGB
R = 4.0767·l − 3.3077·m + 0.2310·s = 0.063008 G = −1.2684·l + 2.6098·m − 0.3413·s = 0.063008 B = −0.0042·l − 0.7034·m + 1.7076·s = 0.040912
6. linear → sRGB, × 255
R = 0.27843 × 255 = 71.00 → 71 G = 0.27843 × 255 = 71.00 → 71 B = 0.22352 × 255 = 57.00 → 57
7. RGB → HEX
#474739
All formats
- HEX
- #474739
- RGB
- rgb(71 71 57)
- RGB (legacy)
- rgb(71, 71, 57)
- HSL
- hsl(60.00 10.94% 25.10%) → hsl(60 11% 25%)
- HWB
- hwb(60 22% 72%)
- OKLCH
- oklch(0.394 0.023 107.4) · oklch(39.4% 0.023 107.4)
- OKLab
- oklab(0.394 -0.007 0.022)
- Lab (D50)
- lab(29.83 -2.09 8.47)
- LCH (D50)
- lch(29.83 8.73 103.88)
- Display P3
- color(display-p3 0.2784 0.2784 0.2291)
- Linear sRGB
- color(srgb-linear 0.0630 0.0630 0.0409)
Gamut: sRGB and Display P3
#474739 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.085 and Display P3 reaches 0.098; this color uses 27% of the sRGB chroma available.
CSS snippets
.element {
color: #474739;
color: rgb(71 71 57);
color: hsl(60 11% 25%);
color: oklch(0.394 0.023 107.4);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.394 0.023 107.4);
}
/* arbitrary values */
class="text-[#474739] bg-[oklch(0.394_0.023_107.4)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.2784 0.2784 0.2291); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #474739 calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- stone-700#44403B
- v3 stone-700#44403C
- neutral-700#404040
- mist-700#394447
- taupe-700#473C39
- zinc-700#3F3F46
- darkslategray#2F4F4F
- taupe-600#5B4F4B
Lighter and darker, same hue and chroma
- #575749 · oklch(0.454 0.023 107.4) · ΔL +0.06
- #37372A · oklch(0.334 0.023 107.4) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?