RGB to HEX: #9CA8AB
Also known as: Tailwind mist-400
Result
rgb(156 168 171) → #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. base 10 → base 16
R = 156 = 9×16 + 12 → 9C G = 168 = 10×16 + 8 → A8 B = 171 = 10×16 + 11 → AB
2. pairs → HEX
9C A8 AB → #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?