HEX to HSL: #32CD32
Also known as: CSS limegreen
Result
#32CD32 → hsl(120 61% 50%)
Values are shown at full precision, so converting back gives exactly #32cd32. 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.1961 G = 0.8039 B = 0.1961
2. max, min, Δ
max = 0.8039 min = 0.1961 Δ = max − min = 0.6078
3. L
L = (max + min) / 2 = 0.5000 = 50.00%
4. S
S = Δ / (1 − |2L − 1|) = 0.6078 = 60.78%
5. H
max is G → H = 60° × ((B − R) / Δ + 2) = 60° × ((0.1961 − 0.1961) / 0.6078 + 2) = 120.00°
6. HSL
hsl(120.00 60.78% 50.00%)
All formats
- HEX
- #32cd32
- RGB
- rgb(50 205 50)
- RGB (legacy)
- rgb(50, 205, 50)
- HSL
- hsl(120.00 60.78% 50.00%) → hsl(120 61% 50%)
- HWB
- hwb(120 20% 20%)
- OKLCH
- oklch(0.742 0.229 142.8) · oklch(74.2% 0.229 142.8)
- OKLab
- oklab(0.742 -0.182 0.138)
- Lab (D50)
- lab(72.67 -61.87 60.06)
- LCH (D50)
- lch(72.67 86.22 135.85)
- Display P3
- color(display-p3 0.4025 0.7926 0.3011)
- Linear sRGB
- color(srgb-linear 0.0319 0.6105 0.0319)
Gamut: sRGB and Display P3
#32CD32 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.250 and Display P3 reaches 0.300; this color uses 92% of the sRGB chroma available.
CSS snippets
.element {
color: #32cd32;
color: rgb(50 205 50);
color: hsl(120 61% 50%);
color: oklch(0.742 0.229 142.8);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.742 0.229 142.8);
}
/* arbitrary values */
class="text-[#32cd32] bg-[oklch(0.742_0.229_142.8)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.4025 0.7926 0.3011); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #32cd32 calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- green-500#00C950
- v3 green-500#22C55E
- lime-500#7CCF00
- v3 lime-500#84CC16
- green-400#05DF72
- v3 green-400#4ADE80
- yellowgreen#9ACD32
- emerald-400#00D492
Lighter and darker, same hue and chroma
- #4DE14A · oklch(0.802 0.229 142.8) · ΔL +0.06
- #03B910 · oklch(0.682 0.229 142.8) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?