OKLCH to HEX: #99A1AF
Also known as: Tailwind gray-400
Result
oklch(0.70708 0.02236 261.749) → #99A1AF
Values are shown at full precision, so converting back gives exactly #99a1af. 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.70708 0.02236 261.749)
2. OKLCH → Oklab
a = C·cos H = -0.00321 b = C·sin H = -0.02213
3. Oklab → LMS′
l′ = L + 0.3963·a + 0.2158·b = 0.701033 m′ = L − 0.1056·a − 0.0639·b = 0.708832 s′ = L − 0.0895·a − 1.2915·b = 0.735946
4. cube
l = 0.701033³ = 0.344520 m = 0.708832³ = 0.356147 s = 0.735946³ = 0.398600
5. LMS → linear sRGB
R = 4.0767·l − 3.3077·m + 0.2310·s = 0.318553 G = −1.2684·l + 2.6098·m − 0.3413·s = 0.356405 B = −0.0042·l − 0.7034·m + 1.7076·s = 0.428689
6. linear → sRGB, × 255
R = 0.60001 × 255 = 153.00 → 153 G = 0.63138 × 255 = 161.00 → 161 B = 0.68627 × 255 = 175.00 → 175
7. RGB → HEX
#99A1AF
All formats
- HEX
- #99a1af
- RGB
- rgb(153 161 175)
- RGB (legacy)
- rgb(153, 161, 175)
- HSL
- hsl(218.18 12.09% 64.31%) → hsl(218 12% 64%)
- HWB
- hwb(218 60% 31%)
- OKLCH
- oklch(0.707 0.022 261.7) · oklch(70.7% 0.022 261.7)
- OKLab
- oklab(0.707 -0.003 -0.022)
- Lab (D50)
- lab(65.93 -0.79 -8.32)
- LCH (D50)
- lch(65.93 8.35 264.59)
- Display P3
- color(display-p3 0.6057 0.6304 0.6811)
- Linear sRGB
- color(srgb-linear 0.3185 0.3564 0.4287)
Gamut: sRGB and Display P3
#99A1AF is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.153 and Display P3 reaches 0.165; this color uses 15% of the sRGB chroma available.
CSS snippets
.element {
color: #99a1af;
color: rgb(153 161 175);
color: hsl(218 12% 64%);
color: oklch(0.707 0.022 261.7);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.707 0.022 261.7);
}
/* arbitrary values */
class="text-[#99a1af] bg-[oklch(0.707_0.022_261.7)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.6057 0.6304 0.6811); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #99a1af calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- v3 gray-400#9CA3AF
- zinc-400#9F9FA9
- v3 zinc-400#A1A1AA
- v3 slate-400#94A3B8
- slate-400#90A1B9
- mauve-400#A89EA9
- neutral-400#A1A1A1
- mist-400#9CA8AB
Lighter and darker, same hue and chroma
- #ACB4C2 · oklch(0.767 0.022 261.7) · ΔL +0.06
- #878F9C · oklch(0.647 0.022 261.7) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?