HEX to OKLCH: #7CFC00
Also known as: CSS lawngreen
Result
#7CFC00 → oklch(0.882 0.263 136.2)
Values are shown at full precision, so converting back gives exactly #7cfc00. 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: 252/255 = 0.98824 → 0.973445 (((x + 0.055) / 1.055)^2.4) B: 0/255 = 0.00000 → 0.000000 (÷ 12.92)
2. linear sRGB → LMS
l = 0.4122·R + 0.5363·G + 0.0514·B = 0.605176 m = 0.2119·R + 0.6807·G + 0.1074·B = 0.705334 s = 0.0883·R + 0.2817·G + 0.6300·B = 0.292036
3. cube root
l′ = ∛0.605176 = 0.845851 m′ = ∛0.705334 = 0.890154 s′ = ∛0.292036 = 0.663456
4. LMS′ → Oklab
L = 0.2105·l′ + 0.7936·m′ − 0.0041·s′ = 0.88175 a = 1.9780·l′ − 2.4286·m′ + 0.4506·s′ = -0.18978 b = 0.0259·l′ + 0.7828·m′ − 0.8087·s′ = 0.18218
5. Oklab → OKLCH
C = √(a² + b²) = 0.26307 H = atan2(b, a) = 136.171° L = 0.88175
6. OKLCH
oklch(0.88175 0.26307 136.171) rounded: oklch(0.882 0.263 136.2)
All formats
- HEX
- #7cfc00
- RGB
- rgb(124 252 0)
- RGB (legacy)
- rgb(124, 252, 0)
- HSL
- hsl(90.48 100.00% 49.41%) → hsl(90 100% 49%)
- HWB
- hwb(90 0% 1%)
- OKLCH
- oklch(0.882 0.263 136.2) · oklch(88.2% 0.263 136.2)
- OKLab
- oklab(0.882 -0.190 0.182)
- Lab (D50)
- lab(89.05 -61.33 83.04)
- LCH (D50)
- lch(89.05 103.23 126.45)
- Display P3
- color(display-p3 0.6169 0.9767 0.3014)
- Linear sRGB
- color(srgb-linear 0.2016 0.9734 0.0000)
Gamut: sRGB and Display P3
#7CFC00 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.263 and Display P3 reaches 0.309; this color uses 100% of the sRGB chroma available.
CSS snippets
.element {
color: #7cfc00;
color: rgb(124 252 0);
color: hsl(90 100% 49%);
color: oklch(0.882 0.263 136.2);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.882 0.263 136.2);
}
/* arbitrary values */
class="text-[#7cfc00] bg-[oklch(0.882_0.263_136.2)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.6169 0.9767 0.3014); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #7cfc00 calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- chartreuse#7FFF00
- lime#00FF00
- greenyellow#ADFF2F
- lime-400#9AE600
- springgreen#00FF7F
- v3 lime-400#A3E635
- lime-300#BBF451
- v3 lime-300#BEF264
Lighter and darker, same hue and chroma
- #90FF38 · oklch(0.942 0.263 136.2) · ΔL +0.06
- #67E700 · oklch(0.822 0.263 136.2) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?