RGB to HEX: #34D399
Also known as: Tailwind v3 emerald-400
Result
rgb(52 211 153) → #34D399
Values are shown at full precision, so converting back gives exactly #34d399. 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. base 10 → base 16
R = 52 = 3×16 + 4 → 34 G = 211 = 13×16 + 3 → D3 B = 153 = 9×16 + 9 → 99
2. pairs → HEX
34 D3 99 → #34D399
All formats
- HEX
- #34d399
- RGB
- rgb(52 211 153)
- RGB (legacy)
- rgb(52, 211, 153)
- HSL
- hsl(158.11 64.37% 51.57%) → hsl(158 64% 52%)
- HWB
- hwb(158 20% 17%)
- OKLCH
- oklch(0.773 0.153 163.2) · oklch(77.3% 0.153 163.2)
- OKLab
- oklab(0.773 -0.147 0.044)
- Lab (D50)
- lab(75.70 -52.19 16.76)
- LCH (D50)
- lch(75.70 54.81 162.20)
- Display P3
- color(display-p3 0.4154 0.8158 0.6162)
- Linear sRGB
- color(srgb-linear 0.0343 0.6514 0.3185)
Gamut: sRGB and Display P3
#34D399 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.167 and Display P3 reaches 0.229; this color uses 92% of the sRGB chroma available.
CSS snippets
.element {
color: #34d399;
color: rgb(52 211 153);
color: hsl(158 64% 52%);
color: oklch(0.773 0.153 163.2);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.773 0.153 163.2);
}
/* arbitrary values */
class="text-[#34d399] bg-[oklch(0.773_0.153_163.2)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.4154 0.8158 0.6162); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #34d399 calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- emerald-400#00D492
- mediumaquamarine#66CDAA
- teal-400#00D5BE
- v3 green-400#4ADE80
- v3 teal-400#2DD4BF
- green-400#05DF72
- emerald-500#00BC7D
- emerald-300#5EE9B5
Lighter and darker, same hue and chroma
- #50E7AC · oklch(0.833 0.153 163.2) · ΔL +0.06
- #01BF87 · oklch(0.713 0.153 163.2) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?