Skip to content

Ghost white

Ghost white is an off-white with a faint blue tint. Hex code #F8F8FF.

Ghost white#F8F8FF

Ghost white color codes

  • CSS nameghostwhite
  • HEX#F8F8FF
  • RGBrgb(248, 248, 255)
  • HSLhsl(240, 100%, 99%)
  • OKLCHoklch(98.1% 0.009 286.2)
HSB and CMYK values
  • HSB / HSVhsb(240, 3%, 100%)
  • CMYKC3 M3 Y0 K0

White text

1.05:1 · fails WCAG

Black text

19.86:1 · passes WCAG AAA

Shades of ghost white

A darker shade of ghost white is #D4D4DB (100).

Colors that go with ghost white

Tones

The complementary color of ghost white is #FFFFF8, close to white.

Click a color to copy its hex code.

Colors similar to ghost white

Each compared with ghost white.

About this color

Ghost white in CSS and design

Ghost white is one of the extended color keywords, which mostly go back to the X11 color names of Unix systems. These four lines all give the same ghost white:

color: ghostwhite;
color: #F8F8FF;
color: rgb(248, 248, 255);
color: hsl(240, 100%, 99%);

What to know about ghost white

Ghost white (#F8F8FF) is white with the red and green channels lowered from 255 to 248, which leaves a faint, cool tint at 240°, the same hue as blue. Alice blue (#F0F8FF) lowers red further, to 240, and keeps green at 248, so its tint leans toward sky blue rather than lilac. Lavender (#E6E6FA) has the same hue as ghost white but is clearly darker. Black text on ghost white reaches 19.86:1, close to the 21:1 of black on pure white.

Frequently asked questions

What is the hex code for ghost white?

#F8F8FF. In CSS you can also use the keyword ghostwhite, which works in every browser.

What is ghost white in RGB and HSL?

In RGB it is rgb(248, 248, 255) and in HSL hsl(240, 100%, 99%). In CMYK it is about C3 M3 Y0 K0, though printed colors vary with paper and ink.

Should I use black or white text on ghost white?

Black text works better: it has a contrast ratio of 19.86:1 and passes WCAG AAA. White text reaches 1.05:1.

What is the complementary color of ghost white?

#FFFFF8, close to white. It sits opposite ghost white on the color wheel: the hue turned 180 degrees, with the same saturation and lightness. Both have so little color that they look almost the same, so ghost white works best as a neutral.

Which colors go with ghost white?

As a neutral, ghost white goes with almost any color. Its own tones, from #6E6E74 to #F8F8FF, make a calm palette, and a single vivid accent stands out against it.

What color is F8F8FF?

F8F8FF (#F8F8FF) is ghost white, a near-white with a faint cool tint: red and green are F8, which is 248, and blue is FF, the full 255. In CSS you can write it as ghostwhite, #F8F8FF or rgb(248, 248, 255).

Is ghost white the same as white?

No, but it is close: the contrast ratio between ghost white (#F8F8FF) and white (#FFFFFF) is just 1.05:1, so the tint is easiest to see when the two sit side by side. That makes ghost white useful for a page or card background that should feel slightly cooler than white without looking colored.