HEX to RGB: #7CFC00
Also known as: CSS lawngreen
Result
#7CFC00 → rgb(124 252 0)
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. HEX → pairs
#7CFC00 → 7C | FC | 00
2. base 16 → base 10
R = 7C₁₆ = 7×16 + 12 = 124 G = FC₁₆ = 15×16 + 12 = 252 B = 00₁₆ = 0×16 + 0 = 0
3. RGB
rgb(124 252 0)
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?