OKLCH to HEX: #F9FBFB

Also known as: Tailwind mist-50

Result

oklch(0.98657 0.00212 197.123) → #F9FBFB

Values are shown at full precision, so converting back gives exactly #f9fbfb. 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

    oklch(0.98657 0.00212 197.123)
  2. 2. OKLCH → Oklab

    a = C·cos H = -0.00203
    b = C·sin H = -0.00062
  3. 3. Oklab → LMS′

    l′ = L + 0.3963·a + 0.2158·b = 0.985632
    m′ = L − 0.1056·a − 0.0639·b = 0.986824
    s′ = L − 0.0895·a − 1.2915·b = 0.987557
  4. 4. cube

    l = 0.985632³ = 0.957513
    m = 0.986824³ = 0.960990
    s = 0.987557³ = 0.963135
  5. 5. LMS → linear sRGB

    R = 4.0767·l − 3.3077·m + 0.2310·s = 0.947312
    G = −1.2684·l + 2.6098·m − 0.3413·s = 0.964667
    B = −0.0042·l − 0.7034·m + 1.7076·s = 0.964667
  6. 6. linear → sRGB, × 255

    R = 0.97647 × 255 = 249.00 → 249
    G = 0.98431 × 255 = 251.00 → 251
    B = 0.98431 × 255 = 251.00 → 251
  7. 7. RGB → HEX

    #F9FBFB

All formats

HEX
#f9fbfb
RGB
rgb(249 251 251)
RGB (legacy)
rgb(249, 251, 251)
HSL
hsl(180.00 20.00% 98.04%) → hsl(180 20% 98%)
HWB
hwb(180 98% 2%)
OKLCH
oklch(0.987 0.002 197.1) · oklch(98.7% 0.002 197.1)
OKLab
oklab(0.987 -0.002 -0.001)
Lab (D50)
lab(98.46 -0.68 -0.24)
LCH (D50)
lch(98.46 0.73 199.65)
Display P3
color(display-p3 0.9779 0.9841 0.9842)
Linear sRGB
color(srgb-linear 0.9473 0.9647 0.9647)

Gamut: sRGB and Display P3

#F9FBFB is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.019 and Display P3 reaches 0.020; this color uses 11% of the sRGB chroma available.

CSS snippets

.element {
  color: #f9fbfb;
  color: rgb(249 251 251);
  color: hsl(180 20% 98%);
  color: oklch(0.987 0.002 197.1);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.987 0.002 197.1);
}
/* arbitrary values */
class="text-[#f9fbfb] bg-[oklch(0.987_0.002_197.1)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.9779 0.9841 0.9842); }
}

/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #f9fbfb 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

  • #FEFFFF · oklch(1.000 0.002 197.1) · ΔL +0.06
  • #E5E7E7 · oklch(0.927 0.002 197.1) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?