HEX to RGB: #052E16
Also known as: Tailwind v3 green-950
Result
#052E16 → rgb(5 46 22)
Values are shown at full precision, so converting back gives exactly #052e16. 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
#052E16 → 05 | 2E | 16
2. base 16 → base 10
R = 05₁₆ = 0×16 + 5 = 5 G = 2E₁₆ = 2×16 + 14 = 46 B = 16₁₆ = 1×16 + 6 = 22
3. RGB
rgb(5 46 22)
All formats
- HEX
- #052e16
- RGB
- rgb(5 46 22)
- RGB (legacy)
- rgb(5, 46, 22)
- HSL
- hsl(144.88 80.39% 10.00%) → hsl(145 80% 10%)
- HWB
- hwb(145 2% 82%)
- OKLCH
- oklch(0.266 0.063 152.9) · oklch(26.6% 0.063 152.9)
- OKLab
- oklab(0.266 -0.056 0.029)
- Lab (D50)
- lab(15.70 -19.71 11.31)
- LCH (D50)
- lch(15.70 22.73 150.17)
- Display P3
- color(display-p3 0.0710 0.1773 0.0953)
- Linear sRGB
- color(srgb-linear 0.0015 0.0273 0.0080)
Gamut: sRGB and Display P3
#052E16 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.069 and Display P3 reaches 0.095; this color uses 92% of the sRGB chroma available.
CSS snippets
.element {
color: #052e16;
color: rgb(5 46 22);
color: hsl(145 80% 10%);
color: oklch(0.266 0.063 152.9);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.266 0.063 152.9);
}
/* arbitrary values */
class="text-[#052e16] bg-[oklch(0.266_0.063_152.9)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.0710 0.1773 0.0953); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #052e16 calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- green-950#032E15
- v3 emerald-950#022C22
- emerald-950#002C22
- v3 lime-950#1A2E05
- lime-950#192E03
- teal-950#022F2E
- v3 teal-950#042F2E
- olive-800#2B2B22
Lighter and darker, same hue and chroma
- #173E25 · oklch(0.326 0.063 152.9) · ΔL +0.06
- #001F08 · oklch(0.206 0.063 152.9) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?