HEX to RGB: #7FFF00
Also known as: CSS chartreuse
Result
#7FFF00 → rgb(127 255 0)
Values are shown at full precision, so converting back gives exactly #7fff00. 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
#7FFF00 → 7F | FF | 00
2. base 16 → base 10
R = 7F₁₆ = 7×16 + 15 = 127 G = FF₁₆ = 15×16 + 15 = 255 B = 00₁₆ = 0×16 + 0 = 0
3. RGB
rgb(127 255 0)
All formats
- HEX
- #7fff00
- RGB
- rgb(127 255 0)
- RGB (legacy)
- rgb(127, 255, 0)
- HSL
- hsl(90.12 100.00% 50.00%) → hsl(90 100% 50%)
- HWB
- hwb(90 0% 0%)
- OKLCH
- oklch(0.890 0.265 136.0) · oklch(89.0% 0.265 136.0)
- OKLab
- oklab(0.890 -0.191 0.184)
- Lab (D50)
- lab(90.05 -61.49 83.86)
- LCH (D50)
- lch(90.05 103.98 126.25)
- Display P3
- color(display-p3 0.6279 0.9884 0.3056)
- Linear sRGB
- color(srgb-linear 0.2122 1.0000 0.0000)
Gamut: sRGB and Display P3
#7FFF00 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.265 and Display P3 reaches 0.295; this color uses 100% of the sRGB chroma available.
CSS snippets
.element {
color: #7fff00;
color: rgb(127 255 0);
color: hsl(90 100% 50%);
color: oklch(0.890 0.265 136.0);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.890 0.265 136.0);
}
/* arbitrary values */
class="text-[#7fff00] bg-[oklch(0.890_0.265_136.0)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.6279 0.9884 0.3056); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #7fff00 calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- lawngreen#7CFC00
- greenyellow#ADFF2F
- lime#00FF00
- lime-400#9AE600
- springgreen#00FF7F
- v3 lime-400#A3E635
- lime-300#BBF451
- v3 lime-300#BEF264
Lighter and darker, same hue and chroma
- #93FF39 · oklch(0.950 0.265 136.0) · ΔL +0.06
- #6BEA00 · oklch(0.830 0.265 136.0) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?