CSS color names · Whites

Ghost White color: hex #f8f8ff, RGB and HSL

Ghost White is the CSS keyword ghostwhite, hex #f8f8ff, rgb(248, 248, 255), hsl(240, 100%, 99%). It is a very light, fully saturated blue in the whites family. Below: the colors that go with it, its tints and shades, how it reads as text, and a complete interface palette built from it.

CSS name
ghostwhite
Hex
#f8f8ff
RGB
rgb(248, 248, 255)
HSL
hsl(240, 100%, 99%)
On white
1.06:1 — fails AA; use as a fill, not text
On black
19.86:1 — passes AA for body text
.example {
  color: ghostwhite;          /* keyword */
  color: #f8f8ff;          /* hex */
  color: rgb(248, 248, 255); /* rgb */
  color: hsl(240, 100%, 99%); /* hsl */
}

What colors go with ghost white

Each match keeps ghost white's saturation and lightness and rotates only the hue, so the relationship is the wheel's and nothing else. Any of these can be an accent beside ghost white as the primary; the harmony guides explain which rule suits which interface.

Complementary

The opposite hue, 180° away — the strongest contrast, best kept to one accent per screen.

#fffff8

Split-complementary

The two neighbors of the complement, at 150° and 210° — most of the contrast with less tension, and two accents instead of one.

#fffbf8
#fbfff8

Triadic

Two hues at 120° and 240° — three evenly spaced signals, the scheme charts and category colors want.

#fff8f8
#f8fff8

Analogous

The neighbors at −30° and +30° — calm and cohesive, with emphasis coming from weight and size rather than hue.

#f8fbff
#fbf8ff

Tints and shades of ghost white

Tints add lightness toward white; shades remove it toward black. The hue and saturation stay fixed, so every step still reads as ghost white — these are the hover, pressed, disabled and surface variants a single brand color needs.

Tints (lighter)

#f9f9ff
#fafaff
#fcfcff
#fdfdff
#fefeff

Shades (darker)

#a4a4ff
#5050ff
#0000fb
#0000a8
#000054

A UI color palette built from ghost white

The eight semantic roles an interface actually uses, derived from ghost white as the primary with the split-complementary rule: secondary and accent rotate around the wheel, and the five neutrals take the hue at lightness steps tuned for light and dark mode. This is the same derivation the palette generator runs — open it there to change the rule, drag the anchors, or export the set as CSS variables.

Light mode
primary
#f8f8ff
secondary
#fffbf8
accent
#fbfff8
background
#fcfcfd
surface
#f3f3f7
text
#111122
muted
#56568f
border
#dfdfec
Dark mode
primary
#f8f8ff
secondary
#fffbf8
accent
#fbfff8
background
#0e0e1b
surface
#151528
text
#f3f3f6
muted
#9494b8
border
#272749

Using ghost white in an interface

The near-whites are page backgrounds. A canvas at ivory or alice blue instead of pure white is the difference between a page that feels designed and one that feels blank — and it is exactly what a tinted `background` role does in a semantic palette. Whichever role ghost white takes, define it once as a token rather than repeating the keyword: the semantic palette guide covers the eight roles, and the guides to complementary, triadic and the other color schemes explain how to weight the matches above.

What is the hex code for Ghost White?
Ghost White is #f8f8ff. In CSS the keyword ghostwhite, the hex #f8f8ff, rgb(248, 248, 255) and hsl(240, 100%, 99%) all paint the same color.
What colors go with Ghost White?
Its complement is #fffff8, the split-complementary pair is #fffbf8 and #fbfff8, the triadic partners are #fff8f8 and #f8fff8, and the analogous neighbors are #f8fbff and #fbf8ff. In an interface, use Ghost White for most colored elements and one of these for a single accent, at roughly an 80/20 split.
What is the opposite of Ghost White on the color wheel?
The opposite (complementary) color is #fffff8, the same saturation and lightness rotated 180° around the HSL wheel. Complementary pairs give the strongest contrast, which is why the complement should be used sparingly rather than at equal weight.
Can I use Ghost White for text?
Ghost White as text on white has a contrast ratio of 1.06:1, which fails WCAG AA for body text (4.5:1) and for large text (3:1). On black it is 19.86:1, which passes for body text. Use it as text on dark surfaces, or as a fill with dark text on top.

Similar named colors

More whites

We'd like to use Google cookies to understand how Nodlume is used and to measure our advertising. Nothing loads until you choose, and declining does not affect anything in the app.