ghostwhite — #F8F8FF
#F8F8FF
rgb(248, 248, 255) · hsl(240, 100%, 99%) · CSS keyword ghostwhite
Can you put text on it?
| Contrast | Body text | Large text | |
|---|---|---|---|
| ghostwhite on white | 1.06:1 | — | — |
| ghostwhite on black | 19.86:1 | AA | AA |
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
- whitesmoke — #F5F5F5
- aliceblue — #F0F8FF
- snow — #FFFAFA
- mintcream — #F5FFFA
- floralwhite — #FFFAF0
- white — #FFFFFF
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
- gold — #FFD700
- goldenrod — #DAA520
- gray — #808080
- green — #008000
- greenyellow — #ADFF2F
- honeydew — #F0FFF0
- hotpink — #FF69B4
- indianred — #CD5C5C
- indigo — #4B0082
- ivory — #FFFFF0
- khaki — #F0E68C
- lavender — #E6E6FA
#F8F8FF in full — tints, shades and harmonies · All named colours · Colour reference