HSL to HEX: #052E16
Also known as: Tailwind v3 green-950
Result
hsl(144.88 80.39% 10.00%) → #052E16
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. input
H = 144.88°, S = 80.39%, L = 10.00%
2. C
C = (1 − |2L − 1|) × S = 0.16078
3. X
X = C × (1 − |(H / 60°) mod 2 − 1|) = 0.06667 (H / 60° = 2.4147, sector 2)
4. m
m = L − C / 2 = 0.01961
5. (R′, G′, B′) + m
(R′, G′, B′) = (0.00000, 0.16078, 0.06667) R = round((0.00000 + 0.01961) × 255) = 5 G = round((0.16078 + 0.01961) × 255) = 46 B = round((0.06667 + 0.01961) × 255) = 22
6. RGB → HEX
#052E16
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?