HEX to OKLCH: #FBFAF9

Also known as: Tailwind taupe-50

Result

#FBFAF9 → oklch(0.986 0.002 67.8)

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

    R: 251/255 = 0.98431 → 0.964686  (((x + 0.055) / 1.055)^2.4)
    G: 250/255 = 0.98039 → 0.955973  (((x + 0.055) / 1.055)^2.4)
    B: 249/255 = 0.97647 → 0.947307  (((x + 0.055) / 1.055)^2.4)
  2. 2. linear sRGB → LMS

    l = 0.4122·R + 0.5363·G + 0.0514·B = 0.959119
    m = 0.2119·R + 0.6807·G + 0.1074·B = 0.956889
    s = 0.0883·R + 0.2817·G + 0.6300·B = 0.951283
  3. 3. cube root

    l′ = ∛0.959119 = 0.986183
    m′ = ∛0.956889 = 0.985418
    s′ = ∛0.951283 = 0.983490
  4. 4. LMS′ → Oklab

    L = 0.2105·l′ + 0.7936·m′ − 0.0041·s′ = 0.98559
    a = 1.9780·l′ − 2.4286·m′ + 0.4506·s′ = 0.00064
    b = 0.0259·l′ + 0.7828·m′ − 0.8087·s′ = 0.00158
  5. 5. Oklab → OKLCH

    C = √(a² + b²) = 0.00171
    H = atan2(b, a) = 67.802°
    L = 0.98559
  6. 6. OKLCH

    oklch(0.98559 0.00171 67.802)
    rounded: oklch(0.986 0.002 67.8)

All formats

HEX
#fbfaf9
RGB
rgb(251 250 249)
RGB (legacy)
rgb(251, 250, 249)
HSL
hsl(30.00 20.00% 98.04%) → hsl(30 20% 98%)
HWB
hwb(30 98% 2%)
OKLCH
oklch(0.986 0.002 67.8) · oklch(98.6% 0.002 67.8)
OKLab
oklab(0.986 0.001 0.002)
Lab (D50)
lab(98.33 0.21 0.60)
LCH (D50)
lch(98.33 0.64 70.58)
Display P3
color(display-p3 0.9836 0.9805 0.9769)
Linear sRGB
color(srgb-linear 0.9647 0.9560 0.9473)

Gamut: sRGB and Display P3

#FBFAF9 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.010 and Display P3 reaches 0.013; this color uses 17% of the sRGB chroma available.

CSS snippets

.element {
  color: #fbfaf9;
  color: rgb(251 250 249);
  color: hsl(30 20% 98%);
  color: oklch(0.986 0.002 67.8);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.986 0.002 67.8);
}
/* arbitrary values */
class="text-[#fbfaf9] bg-[oklch(0.986_0.002_67.8)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.9836 0.9805 0.9769); }
}

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

  • #FFFFFE · oklch(1.000 0.002 67.8) · ΔL +0.06
  • #E7E6E5 · oklch(0.926 0.002 67.8) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?