Toolman

ghostwhite — #F8F8FF

#F8F8FF

rgb(248, 248, 255) · hsl(240, 100%, 99%) · CSS keyword ghostwhite

Can you put text on it?

ContrastBody textLarge text
ghostwhite on white1.06:1
ghostwhite on black19.86:1AAAA

As a background, ghostwhite takes black text: 19.86:1 against 1.06:1 the other way. A colour picker will give you the hex and stop there, which is why so many palettes look right and fail an accessibility audit.

Using it

color: ghostwhite;
color: #f8f8ff;
color: rgb(248 248 255);

All three are the same colour. The keyword is one of the 141 CSS named colours — a list settled in CSS 2.1 and added to exactly once since, when rebeccapurple was standardised in 2014.

Colours close to ghostwhite

Frequently asked questions

What is the hex code for ghostwhite?

The hex code for ghostwhite is #F8F8FF — RGB 248, 248, 255.

Can I use ghostwhite for text?

Not on a white background. ghostwhite reaches only 1.06:1, and WCAG AA asks for 4.5:1. It works as a background or a border, not as ink.

Should text on ghostwhite be black or white?

Black — 19.86:1 against 1.06:1 the other way.

Other named colours

#F8F8FF in full — tints, shades and harmonies · All named colours · Colour reference