HSL to HEX: #2B2422
Also known as: Tailwind taupe-800
Result
hsl(13.33 11.69% 15.10%) → #2B2422
Values are shown at full precision, so converting back gives exactly #2b2422. 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 = 13.33°, S = 11.69%, L = 15.10%
2. C
C = (1 − |2L − 1|) × S = 0.03530
3. X
X = C × (1 − |(H / 60°) mod 2 − 1|) = 0.00784 (H / 60° = 0.2222, sector 0)
4. m
m = L − C / 2 = 0.13335
5. (R′, G′, B′) + m
(R′, G′, B′) = (0.03530, 0.00784, 0.00000) R = round((0.03530 + 0.13335) × 255) = 43 G = round((0.00784 + 0.13335) × 255) = 36 B = round((0.00000 + 0.13335) × 255) = 34
6. RGB → HEX
#2B2422
All formats
- HEX
- #2b2422
- RGB
- rgb(43 36 34)
- RGB (legacy)
- rgb(43, 36, 34)
- HSL
- hsl(13.33 11.69% 15.10%) → hsl(13 12% 15%)
- HWB
- hwb(13 13% 83%)
- OKLCH
- oklch(0.268 0.011 36.5) · oklch(26.8% 0.011 36.5)
- OKLab
- oklab(0.268 0.009 0.007)
- Lab (D50)
- lab(14.95 3.09 2.62)
- LCH (D50)
- lch(14.95 4.06 40.28)
- Display P3
- color(display-p3 0.1641 0.1422 0.1346)
- Linear sRGB
- color(srgb-linear 0.0242 0.0176 0.0160)
Gamut: sRGB and Display P3
#2B2422 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.091 and Display P3 reaches 0.102; this color uses 12% of the sRGB chroma available.
CSS snippets
.element {
color: #2b2422;
color: rgb(43 36 34);
color: hsl(13 12% 15%);
color: oklch(0.268 0.011 36.5);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.268 0.011 36.5);
}
/* arbitrary values */
class="text-[#2b2422] bg-[oklch(0.268_0.011_36.5)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.1641 0.1422 0.1346); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #2b2422 calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- stone-800#292524
- neutral-800#262626
- zinc-800#27272A
- mist-800#22292B
- mauve-800#2A212C
- olive-800#2B2B22
- v3 gray-800#1F2937
- olive-900#1D1D16
Lighter and darker, same hue and chroma
- #3A3331 · oklch(0.328 0.011 36.5) · ΔL +0.06
- #1D1614 · oklch(0.208 0.011 36.5) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?