CSS named color

GhostWhite #F8F8FF

ghostwhite rgb(248, 248, 255)

GhostWhite is a near-white with the hex code #F8F8FF, which converts to rgb(248, 248, 255). Open #F8F8FF in the converter to tweak it.

GhostWhite color values

HEX#F8F8FF
HEX (shorthand)—
RGBrgb(248, 248, 255)
RGBArgba(248, 248, 255, 1)
8-digit HEX#F8F8FFFF
HSLhsl(240, 100%, 99%)
HSV / HSB240°, 3%, 100%
CMYK3%, 3%, 0%, 0%
RGB 0–10.973, 0.973, 1
Decimal16316671
CSS keywordghostwhite

How #F8F8FF converts to RGB

Split the hex code into three pairs and read each pair as a base-16 number: F8 → 248, F8 → 248, FF → 255. That gives rgb(248, 248, 255). The step-by-step guide explains the math.

Shades of GhostWhite

Mixed toward black in 10% steps. Click a swatch to copy its hex.

Tints of GhostWhite

Mixed toward white in 10% steps.

Color harmonies

Hue rotations of GhostWhite on the HSL color wheel, keeping saturation and lightness fixed. The color harmony guide explains when each scheme works.

Complementary

Analogous

Split-complementary

Triadic

Tetradic (square)

Contrast and accessibility

TextBackgroundRatioWCAG 2.x
White GhostWhite 1.05:1Fail
Black GhostWhite 19.86:1AAA

Use black text on a ghostwhite background. Test any other pair in the contrast checker; thresholds are explained in the WCAG contrast guide.

Use GhostWhite in CSS

.element {
  color: ghostwhite;                         /* keyword */
  background-color: #F8F8FF;            /* hex */
  border-color: rgb(248 248 255 / 50%);    /* 50% transparent */
}

Need it semi-transparent? Append an alpha byte: #F8F8FF80 is GhostWhite at 50% opacity. See RGBA & transparency.

Similar named colors

FAQ

What is the HEX code for GhostWhite?

The CSS named color ghostwhite is #F8F8FF in hexadecimal. In CSS you can write color: ghostwhite; or color: #F8F8FF; — both produce the same pixel.

What is GhostWhite in RGB?

GhostWhite is rgb(248, 248, 255): red 248, green 248, blue 255 on the 0–255 scale. As normalized 0–1 floats that is (0.973, 0.973, 1).

Is white or black text more readable on GhostWhite?

Black text is more readable. White on #F8F8FF has a contrast ratio of 1.05:1 (Fail), black on #F8F8FF has 19.86:1 (AAA). WCAG AA needs 4.5:1 for normal text.

Copied!