HEX to RGB: #ADFF2F
Also known as: CSS greenyellow
Result
#ADFF2F → rgb(173 255 47)
Values are shown at full precision, so converting back gives exactly #adff2f. 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
#ADFF2F → AD | FF | 2F
2. base 16 → base 10
R = AD₁₆ = 10×16 + 13 = 173 G = FF₁₆ = 15×16 + 15 = 255 B = 2F₁₆ = 2×16 + 15 = 47
3. RGB
rgb(173 255 47)
All formats
- HEX
- #adff2f
- RGB
- rgb(173 255 47)
- RGB (legacy)
- rgb(173, 255, 47)
- HSL
- hsl(83.65 100.00% 59.22%) → hsl(84 100% 59%)
- HWB
- hwb(84 18% 0%)
- OKLCH
- oklch(0.913 0.233 130.0) · oklch(91.3% 0.233 130.0)
- OKLab
- oklab(0.913 -0.150 0.179)
- Lab (D50)
- lab(92.20 -46.41 80.45)
- LCH (D50)
- lch(92.20 92.88 119.98)
- Display P3
- color(display-p3 0.7492 0.9915 0.3582)
- Linear sRGB
- color(srgb-linear 0.4179 1.0000 0.0284)
Gamut: sRGB and Display P3
#ADFF2F is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.233 and Display P3 reaches 0.259; this color uses 100% of the sRGB chroma available.
CSS snippets
.element {
color: #adff2f;
color: rgb(173 255 47);
color: hsl(84 100% 59%);
color: oklch(0.913 0.233 130.0);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.913 0.233 130.0);
}
/* arbitrary values */
class="text-[#adff2f] bg-[oklch(0.913_0.233_130.0)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.7492 0.9915 0.3582); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #adff2f calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- lime-300#BBF451
- chartreuse#7FFF00
- lawngreen#7CFC00
- v3 lime-300#BEF264
- v3 lime-400#A3E635
- lime-400#9AE600
- palegreen#98FB98
- springgreen#00FF7F
Lighter and darker, same hue and chroma
- #C0FF4E · oklch(0.973 0.233 130.0) · ΔL +0.06
- #9AEB00 · oklch(0.853 0.233 130.0) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?