OKLCH to HEX: #9CA8AB
Also known as: Tailwind mist-400
Result
oklch(0.72302 0.01427 214.384) → #9CA8AB
Values are shown at full precision, so converting back gives exactly #9ca8ab. 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.72302 0.01427 214.384)
2. OKLCH → Oklab
a = C·cos H = -0.01178 b = C·sin H = -0.00806
3. Oklab → LMS′
l′ = L + 0.3963·a + 0.2158·b = 0.716613 m′ = L − 0.1056·a − 0.0639·b = 0.724778 s′ = L − 0.0895·a − 1.2915·b = 0.734482
4. cube
l = 0.716613³ = 0.368006 m = 0.724778³ = 0.380728 s = 0.734482³ = 0.396226
5. LMS → linear sRGB
R = 4.0767·l − 3.3077·m + 0.2310·s = 0.332443 G = −1.2684·l + 2.6098·m − 0.3413·s = 0.391575 B = −0.0042·l − 0.7034·m + 1.7076·s = 0.407246
6. linear → sRGB, × 255
R = 0.61176 × 255 = 156.00 → 156 G = 0.65883 × 255 = 168.00 → 168 B = 0.67059 × 255 = 171.00 → 171
7. RGB → HEX
#9CA8AB
All formats
- HEX
- #9ca8ab
- RGB
- rgb(156 168 171)
- RGB (legacy)
- rgb(156, 168, 171)
- HSL
- hsl(192.00 8.20% 64.12%) → hsl(192 8% 64%)
- HWB
- hwb(192 61% 33%)
- OKLCH
- oklch(0.723 0.014 214.4) · oklch(72.3% 0.014 214.4)
- OKLab
- oklab(0.723 -0.012 -0.008)
- Lab (D50)
- lab(67.97 -3.92 -3.08)
- LCH (D50)
- lch(67.97 4.99 218.17)
- Display P3
- color(display-p3 0.6205 0.6573 0.6688)
- Linear sRGB
- color(srgb-linear 0.3325 0.3916 0.4072)
Gamut: sRGB and Display P3
#9CA8AB is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.127 and Display P3 reaches 0.169; this color uses 11% of the sRGB chroma available.
CSS snippets
.element {
color: #9ca8ab;
color: rgb(156 168 171);
color: hsl(192 8% 64%);
color: oklch(0.723 0.014 214.4);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.723 0.014 214.4);
}
/* arbitrary values */
class="text-[#9ca8ab] bg-[oklch(0.723_0.014_214.4)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.6205 0.6573 0.6688); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #9ca8ab calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- v3 neutral-400#A3A3A3
- v3 gray-400#9CA3AF
- darkgray#A9A9A9
- v3 zinc-400#A1A1AA
- neutral-400#A1A1A1
- gray-400#99A1AF
- v3 stone-400#A8A29E
- zinc-400#9F9FA9
Lighter and darker, same hue and chroma
- #AFBBBE · oklch(0.783 0.014 214.4) · ΔL +0.06
- #8A9698 · oklch(0.663 0.014 214.4) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?