HEX to OKLCH: #474739
Also known as: Tailwind olive-700
Result
#474739 → oklch(0.394 0.023 107.4)
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. sRGB → linear
R: 71/255 = 0.27843 → 0.063010 (((x + 0.055) / 1.055)^2.4) G: 71/255 = 0.27843 → 0.063010 (((x + 0.055) / 1.055)^2.4) B: 57/255 = 0.22353 → 0.040915 (((x + 0.055) / 1.055)^2.4)
2. linear sRGB → LMS
l = 0.4122·R + 0.5363·G + 0.0514·B = 0.061873 m = 0.2119·R + 0.6807·G + 0.1074·B = 0.060637 s = 0.0883·R + 0.2817·G + 0.6300·B = 0.049091
3. cube root
l′ = ∛0.061873 = 0.395519 m′ = ∛0.060637 = 0.392868 s′ = ∛0.049091 = 0.366156
4. LMS′ → Oklab
L = 0.2105·l′ + 0.7936·m′ − 0.0041·s′ = 0.39353 a = 1.9780·l′ − 2.4286·m′ + 0.4506·s′ = -0.00679 b = 0.0259·l′ + 0.7828·m′ − 0.8087·s′ = 0.02167
5. Oklab → OKLCH
C = √(a² + b²) = 0.02271 H = atan2(b, a) = 107.399° L = 0.39353
6. OKLCH
oklch(0.39353 0.02271 107.399) rounded: oklch(0.394 0.023 107.4)
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?