Colors · value from the CSS Color Module Level 4 (W3C)
Ghost white color: hex code #F8F8FF, RGB and shades
Ghost white is #F8F8FF (RGB 248, 248, 255), a CSS named color: an almost-white with a faint cool blue tint. Use dark text on it; black reaches 19.86:1, while white on it is only 1.05:1.
- HEX
#F8F8FF- RGB
rgb(248, 248, 255)- HSL
hsl(240, 100%, 99%)
Best text on it: black at 19.86:1
Every code for Ghost white
- HEX
#F8F8FF - RGB
rgb(248, 248, 255) - HSL
hsl(240, 100%, 99%) - HSV
240°, 3%, 100% - CMYK
3%, 3%, 0%, 0% - Lab
lab(97.7% 0.9 -3.4) - OKLCH
oklch(98.1% 0.009 286.2) - Decimal
16316671
Tints, shades and tones
From white to black in 10% steps, with Ghost white in the middle. Tap a code to copy it.
- 90%#FEFEFF
- 80%#FEFEFF
- 70%#FDFDFF
- 60%#FCFCFF
- 50%#FCFCFF
- 40%#FBFBFF
- 30%#FAFAFF
- 20%#F9F9FF
- 10%#F9F9FF
- Base#F8F8FF
- 10%#DFDFE6
- 20%#C6C6CC
- 30%#AEAEB3
- 40%#959599
- 50%#7C7C80
- 60%#636366
- 70%#4A4A4D
- 80%#323233
- 90%#19191A
Tones (mixed with gray)
- 10%#ECECF2
- 20%#E0E0E6
- 30%#D4D4D9
- 40%#C8C8CC
- 50%#BCBCC0
- 60%#B0B0B3
- 70%#A4A4A6
- 80%#989899
- 90%#8C8C8D
Matching colors
Ghost white in 3D color space
OKLab, the space ColorPlum does its math in: lightness runs up the pole, hue goes around it and saturation grows outward. The faint shell is every color a screen can show (saturation is drawn wider than lightness so hues separate). Drag to turn it.
- Ghost white
- Triad #FFF8F8
- Triad #F8FFF8
- Complement
- 50% tint
- 50% shade
Ghost white in use
Card body text stays dark for reading; ghost white carries the header and the button.
Shop nowTagHeadline in Ghost white
A paragraph with a link in dark text, because this color is too light for text on white; use it for fills instead.
How it looks with color-vision deficiency
A simulation (Machado and colleagues, 2009) of how the color and its complement read without one type of cone.
- Typical color vision
#F8F8FF - Protanopia (no red cones)
#F7F9FF - Deuteranopia (no green cones)
#F6F8FF - Tritanopia (no blue cones)
#F7F9FA
Contrast and readability
| Pairing | Ratio | WCAG 2.2 |
|---|---|---|
| as text on white | 1.05:1 | AA AA large AAA |
| as text on black | 19.86:1 | AA AA large AAA |
| white text on it | 1.05:1 | AA AA large AAA |
| black text on it | 19.86:1 | AA AA large AAA |
| on your background | 1.08:1 | AA AA large AAA |
Export
:root {
--ghost-white: #f8f8ff;
--ghost-white-rgb: 248 248 255;
--ghost-white-on: #000000;
}On this page
Ghost white is one of the 148 named colors in the CSS color list, and its value is #F8F8FF. It is not pure white. The blue channel sits at the maximum while red and green stop just short of it, so the page has a barely visible cool cast. Put it next to #FFFFFF and you can see the difference; on its own, most people read it simply as "white".
What the codes mean
In RGB, ghost white is 248, 248, 255. In HSL it is hue 240°, 100% saturation and 99% lightness, which tells you the same story: a blue hue, but so close to the top of the lightness scale that almost no color is left. The CMYK estimate is 3%, 3%, 0%, 0%, a tiny trace of cyan and magenta that a printer would mostly round to bare paper.
Several named colors crowd around it. aliceblue (#F0F8FF) is only 1.0 away in OKLab distance, and snow (#FFFAFA) and whitesmoke (#F5F5F5) are 1.3 and 1.4 away. Those gaps are small enough that on many screens you would struggle to tell them apart without a reference swatch. If a design needs a visibly cool off-white, Alice blue is the next step along; for a warmer one, look at beige.
Using ghost white well
- Text on it: black on ghost white measures 19.86:1, and dark gray works almost as well. White text on it fails badly at 1.05:1, so it is a background color, not a text color.
- As a page background: it softens the glare of a pure white page while staying clean. Cards in true white can sit on top of it and still read as slightly lifted.
- Borders and dividers: the 40% shade, #959599, and the 70% shade, #4A4A4D, give you neutral lines that keep the faint blue undertone.
- Pairings: its complementary color is #FFFFF8, a near-white with a yellow cast, so strong pairings come from the colors you put on top of it: navy, charcoal, or a single saturated accent.
Worked example
Say you are laying out a documentation site and want the main reading area to feel calmer than stark white. Use #F8F8FF for the page and #FFFFFF for code panels. Body text in #333333 on the ghost white background measures 11.95:1, comfortably above the 7:1 AAA level. For secondary text such as timestamps, the 70% shade #4A4A4D gives 8.35:1, while a lighter gray like #6D6D70 gets 4.87:1, which clears the 4.5:1 AA minimum with little to spare. Enter each of those in the "Try a background" box above to confirm before you commit. The white panels will sit at only 1.05:1 against the page, so give them a thin border rather than relying on the color gap.
Ghost white versus white
The difference is small but real, and it shows most on large areas. Because the lift is so slight, ghost white rarely needs its own text rules: anything that works on white works on it. What changes is mood. A pure white page feels clinical, while this one feels a touch cooler and quieter. For a layered interface, see how to build a ladder of nearby lights with the shade and tint generator.