HEX to HSL: #7CCF00
Also known as: Tailwind lime-500
Result
#7CCF00 → hsl(84 100% 41%)
Values are shown at full precision, so converting back gives exactly #7ccf00. 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.4863 G = 0.8118 B = 0.0000
2. max, min, Δ
max = 0.8118 min = 0.0000 Δ = max − min = 0.8118
3. L
L = (max + min) / 2 = 0.4059 = 40.59%
4. S
S = Δ / (1 − |2L − 1|) = 1.0000 = 100.00%
5. H
max is G → H = 60° × ((B − R) / Δ + 2) = 60° × ((0.0000 − 0.4863) / 0.8118 + 2) = 84.06°
6. HSL
hsl(84.06 100.00% 40.59%)
All formats
- HEX
- #7ccf00
- RGB
- rgb(124 207 0)
- RGB (legacy)
- rgb(124, 207, 0)
- HSL
- hsl(84.06 100.00% 40.59%) → hsl(84 100% 41%)
- HWB
- hwb(84 0% 19%)
- OKLCH
- oklch(0.771 0.216 132.5) · oklch(77.1% 0.216 132.5)
- OKLab
- oklab(0.771 -0.146 0.159)
- Lab (D50)
- lab(75.59 -45.66 72.89)
- LCH (D50)
- lch(75.59 86.01 122.07)
- Display P3
- color(display-p3 0.5625 0.8036 0.2443)
- Linear sRGB
- color(srgb-linear 0.2016 0.6240 0.0000)
Gamut: sRGB and Display P3
#7CCF00 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.216 and Display P3 reaches 0.253; this color uses 100% of the sRGB chroma available.
CSS snippets
.element {
color: #7ccf00;
color: rgb(124 207 0);
color: hsl(84 100% 41%);
color: oklch(0.771 0.216 132.5);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.771 0.216 132.5);
}
/* arbitrary values */
class="text-[#7ccf00] bg-[oklch(0.771_0.216_132.5)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.5625 0.8036 0.2443); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #7ccf00 calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- v3 lime-500#84CC16
- yellowgreen#9ACD32
- limegreen#32CD32
- green-500#00C950
- lime-400#9AE600
- green-400#05DF72
- v3 green-400#4ADE80
- v3 lime-400#A3E635
Lighter and darker, same hue and chroma
- #8FE331 · oklch(0.831 0.216 132.5) · ΔL +0.06
- #69BB00 · oklch(0.711 0.216 132.5) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?