RGB to HEX: #99A1AF

Also known as: Tailwind gray-400

Result

rgb(153 161 175) → #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. 1. base 10 → base 16

    R = 153 = 9×16 + 9 → 99
    G = 161 = 10×16 + 1 → A1
    B = 175 = 10×16 + 15 → AF
  2. 2. pairs → HEX

    99 A1 AF → #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).

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

All converters →

Guides: What is OKLCH?