HSL to HEX: #99A1AF

Also known as: Tailwind gray-400

Result

hsl(218.18 12.09% 64.31%) → #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. input

    H = 218.18°, S = 12.09%, L = 64.31%
  2. 2. C

    C = (1 − |2L − 1|) × S = 0.08630
  3. 3. X

    X = C × (1 − |(H / 60°) mod 2 − 1|) = 0.03138   (H / 60° = 3.6363, sector 3)
  4. 4. m

    m = L − C / 2 = 0.59995
  5. 5. (R′, G′, B′) + m

    (R′, G′, B′) = (0.00000, 0.03138, 0.08630)
    R = round((0.00000 + 0.59995) × 255) = 153
    G = round((0.03138 + 0.59995) × 255) = 161
    B = round((0.08630 + 0.59995) × 255) = 175
  6. 6. 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).

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?