OKLCH to HEX: #161B1D
Also known as: Tailwind mist-900
Result
oklch(0.21782 0.00848 223.872) → #161B1D
Values are shown at full precision, so converting back gives exactly #161b1d. 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
oklch(0.21782 0.00848 223.872)
2. OKLCH → Oklab
a = C·cos H = -0.00611 b = C·sin H = -0.00588
3. Oklab → LMS′
l′ = L + 0.3963·a + 0.2158·b = 0.214129 m′ = L − 0.1056·a − 0.0639·b = 0.218841 s′ = L − 0.0895·a − 1.2915·b = 0.225957
4. cube
l = 0.214129³ = 0.009818 m = 0.218841³ = 0.010481 s = 0.225957³ = 0.011537
5. LMS → linear sRGB
R = 4.0767·l − 3.3077·m + 0.2310·s = 0.008024 G = −1.2684·l + 2.6098·m − 0.3413·s = 0.010960 B = −0.0042·l − 0.7034·m + 1.7076·s = 0.012287
6. linear → sRGB, × 255
R = 0.08628 × 255 = 22.00 → 22 G = 0.10588 × 255 = 27.00 → 27 B = 0.11373 × 255 = 29.00 → 29
7. RGB → HEX
#161B1D
All formats
- HEX
- #161b1d
- RGB
- rgb(22 27 29)
- RGB (legacy)
- rgb(22, 27, 29)
- HSL
- hsl(197.14 13.73% 10.00%) → hsl(197 14% 10%)
- HWB
- hwb(197 9% 89%)
- OKLCH
- oklch(0.218 0.008 223.9) · oklch(21.8% 0.008 223.9)
- OKLab
- oklab(0.218 -0.006 -0.006)
- Lab (D50)
- lab(9.31 -1.99 -2.23)
- LCH (D50)
- lch(9.31 2.99 228.19)
- Display P3
- color(display-p3 0.0900 0.1053 0.1128)
- Linear sRGB
- color(srgb-linear 0.0080 0.0110 0.0123)
Gamut: sRGB and Display P3
#161B1D is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.041 and Display P3 reaches 0.054; this color uses 21% of the sRGB chroma available.
CSS snippets
.element {
color: #161b1d;
color: rgb(22 27 29);
color: hsl(197 14% 10%);
color: oklch(0.218 0.008 223.9);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.218 0.008 223.9);
}
/* arbitrary values */
class="text-[#161b1d] bg-[oklch(0.218_0.008_223.9)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.0900 0.1053 0.1128); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #161b1d calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- zinc-900#18181B
- stone-900#1C1917
- neutral-900#171717
- taupe-900#1D1816
- olive-900#1D1D16
- mauve-900#1D161E
- v3 gray-900#111827
- gray-900#101828
Lighter and darker, same hue and chroma
- #24292B · oklch(0.278 0.008 223.9) · ΔL +0.06
- #090E0F · oklch(0.158 0.008 223.9) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?