HEX to RGB: #4ADE80
Also known as: Tailwind v3 green-400
Result
#4ADE80 → rgb(74 222 128)
Values are shown at full precision, so converting back gives exactly #4ade80. 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
#4ADE80 → 4A | DE | 80
2. base 16 → base 10
R = 4A₁₆ = 4×16 + 10 = 74 G = DE₁₆ = 13×16 + 14 = 222 B = 80₁₆ = 8×16 + 0 = 128
3. RGB
rgb(74 222 128)
All formats
- HEX
- #4ade80
- RGB
- rgb(74 222 128)
- RGB (legacy)
- rgb(74, 222, 128)
- HSL
- hsl(141.89 69.16% 58.04%) → hsl(142 69% 58%)
- HWB
- hwb(142 29% 13%)
- OKLCH
- oklch(0.800 0.182 151.7) · oklch(80.0% 0.182 151.7)
- OKLab
- oklab(0.800 -0.160 0.086)
- Lab (D50)
- lab(79.16 -56.20 34.17)
- LCH (D50)
- lch(79.16 65.77 148.70)
- Display P3
- color(display-p3 0.4685 0.8589 0.5377)
- Linear sRGB
- color(srgb-linear 0.0685 0.7305 0.2159)
Gamut: sRGB and Display P3
#4ADE80 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.212 and Display P3 reaches 0.295; this color uses 86% of the sRGB chroma available.
CSS snippets
.element {
color: #4ade80;
color: rgb(74 222 128);
color: hsl(142 69% 58%);
color: oklch(0.800 0.182 151.7);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.800 0.182 151.7);
}
/* arbitrary values */
class="text-[#4ade80] bg-[oklch(0.800_0.182_151.7)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.4685 0.8589 0.5377); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #4ade80 calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- green-400#05DF72
- emerald-400#00D492
- v3 emerald-400#34D399
- emerald-300#5EE9B5
- mediumspringgreen#00FA9A
- lightgreen#90EE90
- v3 emerald-300#6EE7B7
- green-300#7BF1A8
Lighter and darker, same hue and chroma
- #62F293 · oklch(0.860 0.182 151.7) · ΔL +0.06
- #2ECA6D · oklch(0.740 0.182 151.7) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?