RGB to HEX: #F1F5F9

Also known as: Tailwind slate-100, Tailwind v3 slate-100

Result

rgb(241 245 249) → #F1F5F9

Values are shown at full precision, so converting back gives exactly #f1f5f9. 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 = 241 = 15×16 + 1 → F1
    G = 245 = 15×16 + 5 → F5
    B = 249 = 15×16 + 9 → F9
  2. 2. pairs → HEX

    F1 F5 F9 → #F1F5F9

All formats

HEX
#f1f5f9
RGB
rgb(241 245 249)
RGB (legacy)
rgb(241, 245, 249)
HSL
hsl(210.00 40.00% 96.08%) → hsl(210 40% 96%)
HWB
hwb(210 95% 2%)
OKLCH
oklch(0.968 0.007 247.9) · oklch(96.8% 0.007 247.9)
OKLab
oklab(0.968 -0.003 -0.006)
Lab (D50)
lab(96.32 -0.83 -2.42)
LCH (D50)
lch(96.32 2.56 250.94)
Display P3
color(display-p3 0.9479 0.9603 0.9748)
Linear sRGB
color(srgb-linear 0.8796 0.9131 0.9473)

Gamut: sRGB and Display P3

#F1F5F9 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.016 and Display P3 reaches 0.017; this color uses 43% of the sRGB chroma available.

CSS snippets

.element {
  color: #f1f5f9;
  color: rgb(241 245 249);
  color: hsl(210 40% 96%);
  color: oklch(0.968 0.007 247.9);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.968 0.007 247.9);
}
/* arbitrary values */
class="text-[#f1f5f9] bg-[oklch(0.968_0.007_247.9)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.9479 0.9603 0.9748); }
}

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

  • #FCFFFF · oklch(1.000 0.007 247.9) · ΔL +0.06
  • #DDE1E5 · oklch(0.908 0.007 247.9) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?