HEX to RGB: #00FF00
Also known as: CSS lime
Result
#00FF00 → rgb(0 255 0)
Values are shown at full precision, so converting back gives exactly #00ff00. 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
#00FF00 → 00 | FF | 00
2. base 16 → base 10
R = 00₁₆ = 0×16 + 0 = 0 G = FF₁₆ = 15×16 + 15 = 255 B = 00₁₆ = 0×16 + 0 = 0
3. RGB
rgb(0 255 0)
All formats
- HEX
- #00ff00
- RGB
- rgb(0 255 0)
- RGB (legacy)
- rgb(0, 255, 0)
- HSL
- hsl(120.00 100.00% 50.00%) → hsl(120 100% 50%)
- HWB
- hwb(120 0% 0%)
- OKLCH
- oklch(0.866 0.295 142.5) · oklch(86.6% 0.295 142.5)
- OKLab
- oklab(0.866 -0.234 0.179)
- Lab (D50)
- lab(87.82 -79.27 80.99)
- LCH (D50)
- lch(87.82 113.33 134.38)
- Display P3
- color(display-p3 0.4584 0.9853 0.2983)
- Linear sRGB
- color(srgb-linear 0.0000 1.0000 0.0000)
Gamut: sRGB and Display P3
#00FF00 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.295 and Display P3 reaches 0.331; this color uses 100% of the sRGB chroma available.
CSS snippets
.element {
color: #00ff00;
color: rgb(0 255 0);
color: hsl(120 100% 50%);
color: oklch(0.866 0.295 142.5);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.866 0.295 142.5);
}
/* arbitrary values */
class="text-[#00ff00] bg-[oklch(0.866_0.295_142.5)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.4584 0.9853 0.2983); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #00ff00 calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- lawngreen#7CFC00
- chartreuse#7FFF00
- springgreen#00FF7F
- lime-400#9AE600
- greenyellow#ADFF2F
- v3 lime-400#A3E635
- mediumspringgreen#00FA9A
- green-400#05DF72
Lighter and darker, same hue and chroma
- #3EFF38 · oklch(0.926 0.295 142.5) · ΔL +0.06
- #00EA00 · oklch(0.806 0.295 142.5) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?