HEX to HSL: #00FF7F
Also known as: CSS springgreen
Result
#00FF7F → hsl(150 100% 50%)
Values are shown at full precision, so converting back gives exactly #00ff7f. 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. RGB ÷ 255
R = 0.0000 G = 1.0000 B = 0.4980
2. max, min, Δ
max = 1.0000 min = 0.0000 Δ = max − min = 1.0000
3. L
L = (max + min) / 2 = 0.5000 = 50.00%
4. S
S = Δ / (1 − |2L − 1|) = 1.0000 = 100.00%
5. H
max is G → H = 60° × ((B − R) / Δ + 2) = 60° × ((0.4980 − 0.0000) / 1.0000 + 2) = 149.88°
6. HSL
hsl(149.88 100.00% 50.00%)
All formats
- HEX
- #00ff7f
- RGB
- rgb(0 255 127)
- RGB (legacy)
- rgb(0, 255, 127)
- HSL
- hsl(149.88 100.00% 50.00%) → hsl(150 100% 50%)
- HWB
- hwb(150 0% 0%)
- OKLCH
- oklch(0.875 0.235 151.0) · oklch(87.5% 0.235 151.0)
- OKLab
- oklab(0.875 -0.206 0.114)
- Lab (D50)
- lab(88.44 -72.50 45.98)
- LCH (D50)
- lch(88.44 85.85 147.62)
- Display P3
- color(display-p3 0.4584 0.9853 0.5523)
- Linear sRGB
- color(srgb-linear 0.0000 1.0000 0.2122)
Gamut: sRGB and Display P3
#00FF7F is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.235 and Display P3 reaches 0.264; this color uses 100% of the sRGB chroma available.
CSS snippets
.element {
color: #00ff7f;
color: rgb(0 255 127);
color: hsl(150 100% 50%);
color: oklch(0.875 0.235 151.0);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.875 0.235 151.0);
}
/* arbitrary values */
class="text-[#00ff7f] bg-[oklch(0.875_0.235_151.0)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.4584 0.9853 0.5523); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #00ff7f calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- mediumspringgreen#00FA9A
- lawngreen#7CFC00
- lime#00FF00
- chartreuse#7FFF00
- palegreen#98FB98
- lightgreen#90EE90
- green-300#7BF1A8
- green-400#05DF72
Lighter and darker, same hue and chroma
- #3FFF93 · oklch(0.935 0.235 151.0) · ΔL +0.06
- #00EA6C · oklch(0.815 0.235 151.0) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?