HEX to RGB: #FAFAF9

Also known as: Tailwind stone-50, Tailwind v3 stone-50

Result

#FAFAF9 → rgb(250 250 249)

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

    #FAFAF9 → FA | FA | F9
  2. 2. base 16 → base 10

    R = FA₁₆ = 15×16 + 10 = 250
    G = FA₁₆ = 15×16 + 10 = 250
    B = F9₁₆ = 15×16 + 9 = 249
  3. 3. RGB

    rgb(250 250 249)

All formats

HEX
#fafaf9
RGB
rgb(250 250 249)
RGB (legacy)
rgb(250, 250, 249)
HSL
hsl(60.00 9.09% 97.84%) → hsl(60 9% 98%)
HWB
hwb(60 98% 2%)
OKLCH
oklch(0.985 0.001 106.4) · oklch(98.5% 0.001 106.4)
OKLab
oklab(0.985 0.000 0.001)
Lab (D50)
lab(98.25 -0.13 0.48)
LCH (D50)
lch(98.25 0.50 105.22)
Display P3
color(display-p3 0.9804 0.9804 0.9768)
Linear sRGB
color(srgb-linear 0.9560 0.9560 0.9473)

Gamut: sRGB and Display P3

#FAFAF9 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.066 and Display P3 reaches 0.068; this color uses 2% of the sRGB chroma available.

CSS snippets

.element {
  color: #fafaf9;
  color: rgb(250 250 249);
  color: hsl(60 9% 98%);
  color: oklch(0.985 0.001 106.4);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.985 0.001 106.4);
}
/* arbitrary values */
class="text-[#fafaf9] bg-[oklch(0.985_0.001_106.4)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.9804 0.9804 0.9768); }
}

/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #fafaf9 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.001 106.4) · ΔL +0.06
  • #E6E6E5 · oklch(0.925 0.001 106.4) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?