HEX to HSL: #22292B
Also known as: Tailwind mist-800
Result
#22292B → hsl(193 12% 15%)
Values are shown at full precision, so converting back gives exactly #22292b. 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. RGB ÷ 255
R = 0.1333 G = 0.1608 B = 0.1686
2. max, min, Δ
max = 0.1686 min = 0.1333 Δ = max − min = 0.0353
3. L
L = (max + min) / 2 = 0.1510 = 15.10%
4. S
S = Δ / (1 − |2L − 1|) = 0.1169 = 11.69%
5. H
max is B → H = 60° × ((R − G) / Δ + 4) = 60° × ((0.1333 − 0.1608) / 0.0353 + 4) = 193.33°
6. HSL
hsl(193.33 11.69% 15.10%)
All formats
- HEX
- #22292b
- RGB
- rgb(34 41 43)
- RGB (legacy)
- rgb(34, 41, 43)
- HSL
- hsl(193.33 11.69% 15.10%) → hsl(193 12% 15%)
- HWB
- hwb(193 13% 83%)
- OKLCH
- oklch(0.275 0.011 216.9) · oklch(27.5% 0.011 216.9)
- OKLab
- oklab(0.275 -0.008 -0.006)
- Lab (D50)
- lab(15.96 -2.79 -2.41)
- LCH (D50)
- lch(15.96 3.69 220.83)
- Display P3
- color(display-p3 0.1386 0.1600 0.1675)
- Linear sRGB
- color(srgb-linear 0.0160 0.0222 0.0242)
Gamut: sRGB and Display P3
#22292B is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.049 and Display P3 reaches 0.065; this color uses 22% of the sRGB chroma available.
CSS snippets
.element {
color: #22292b;
color: rgb(34 41 43);
color: hsl(193 12% 15%);
color: oklch(0.275 0.011 216.9);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.275 0.011 216.9);
}
/* arbitrary values */
class="text-[#22292b] bg-[oklch(0.275_0.011_216.9)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.1386 0.1600 0.1675); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #22292b calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- zinc-800#27272A
- neutral-800#262626
- stone-800#292524
- v3 gray-800#1F2937
- taupe-800#2B2422
- olive-800#2B2B22
- gray-800#1E2939
- v3 slate-800#1E293B
Lighter and darker, same hue and chroma
- #31383A · oklch(0.335 0.011 216.9) · ΔL +0.06
- #141B1D · oklch(0.215 0.011 216.9) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?