OKLCH to HEX: #4D7C0F
Also known as: Tailwind v3 lime-700
Result
oklch(0.53222 0.14053 131.589) → #4D7C0F
Values are shown at full precision, so converting back gives exactly #4d7c0f. 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.53222 0.14053 131.589)
2. OKLCH → Oklab
a = C·cos H = -0.09328 b = C·sin H = 0.10511
3. Oklab → LMS′
l′ = L + 0.3963·a + 0.2158·b = 0.517931 m′ = L − 0.1056·a − 0.0639·b = 0.535355 s′ = L − 0.0895·a − 1.2915·b = 0.404824
4. cube
l = 0.517931³ = 0.138937 m = 0.535355³ = 0.153436 s = 0.404824³ = 0.066344
5. LMS → linear sRGB
R = 4.0767·l − 3.3077·m + 0.2310·s = 0.074211 G = −1.2684·l + 2.6098·m − 0.3413·s = 0.201553 B = −0.0042·l − 0.7034·m + 1.7076·s = 0.004777
6. linear → sRGB, × 255
R = 0.30195 × 255 = 77.00 → 77 G = 0.48627 × 255 = 124.00 → 124 B = 0.05882 × 255 = 15.00 → 15
7. RGB → HEX
#4D7C0F
All formats
- HEX
- #4d7c0f
- RGB
- rgb(77 124 15)
- RGB (legacy)
- rgb(77, 124, 15)
- HSL
- hsl(85.87 78.42% 27.25%) → hsl(86 78% 27%)
- HWB
- hwb(86 6% 51%)
- OKLCH
- oklch(0.532 0.141 131.6) · oklch(53.2% 0.141 131.6)
- OKLab
- oklab(0.532 -0.093 0.105)
- Lab (D50)
- lab(47.14 -29.18 47.35)
- LCH (D50)
- lch(47.14 55.62 121.65)
- Display P3
- color(display-p3 0.3438 0.4815 0.1526)
- Linear sRGB
- color(srgb-linear 0.0742 0.2016 0.0048)
Gamut: sRGB and Display P3
#4D7C0F is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.147 and Display P3 reaches 0.172; this color uses 96% of the sRGB chroma available.
CSS snippets
.element {
color: #4d7c0f;
color: rgb(77 124 15);
color: hsl(86 78% 27%);
color: oklch(0.532 0.141 131.6);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.532 0.141 131.6);
}
/* arbitrary values */
class="text-[#4d7c0f] bg-[oklch(0.532_0.141_131.6)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.3438 0.4815 0.1526); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #4d7c0f calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- lime-700#497D00
- green-700#008236
- v3 green-700#15803D
- forestgreen#228B22
- green#008000
- darkolivegreen#556B2F
- seagreen#2E8B57
- olivedrab#6B8E23
Lighter and darker, same hue and chroma
- #5E8E29 · oklch(0.592 0.141 131.6) · ΔL +0.06
- #3C6A00 · oklch(0.472 0.141 131.6) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?