#F8F8FF
ghostwhite
#F8F8FF is the CSS named color "ghostwhite", an exact match. In RGB it breaks down to red 248, green 248, and blue 255 out of 255 each. In HSL terms that's a hue of 240°, 100% saturation, and 99% lightness: very light, close to white — it works best as a background with dark text on top, not as text on a light page.
Every format
| HEX | #f8f8ff |
| RGB | rgb(248, 248, 255) |
| HSL | hsl(240° 100% 99%) |
| HSB | hsb(240° 3% 100%) |
| OKLCH | oklch(98% 0.009 286°) |
| OKLAB | oklab(98% 0.003 -0.009) |
| LCH | lch(98% 3.5 285°) |
| CMYK | cmyk(3% 3% 0% 0%) |
Shades (darker)
#f8f8ff · #dedee5 · #c5c5cb · #acacb2 · #94949a
Tints (lighter)
#f8f8ff · #f9f9ff · #f9f9ff · #fafaff · #fbfbff
Shades mix #F8F8FF toward black in even steps, useful for hover and pressed states in a UI; tints mix it toward white, useful for subtle backgrounds and disabled states that still read as the same color family.
On white: 1.06:1 — fails
On black: 19.86:1 — AAA
Frequently asked
- What is #F8F8FF in RGB?
- #F8F8FF is rgb(248, 248, 255) — red 248, green 248, blue 255 out of 255 each.
- Does #F8F8FF pass WCAG contrast on a white background?
- It has a contrast ratio of 1.06:1 against white, which fails for normal text.
- What's a good background color to pair with #F8F8FF?
- Black text or a black background gives better contrast (19.86:1) than white (1.06:1).