Skip to content
PantoneTools
blue
CSS Named Colors

Ghostwhite

ghostwhite · #F8F8FF

HEX

#F8F8FF

RGB

rgb(248, 248, 255)

CMYK

cmyk(3%, 3%, 0%, 0%)

HSL

hsl(240, 100%, 99%)

LAB

lab(97.8, 1.3, -3.4)

What is Ghostwhite?

Ghostwhite is the ghostwhite reference in the CSS Named Colors. Its sRGB value is #F8F8FF (rgb 248, 248, 255). It sits in the blue family. The 147 named colors defined by the W3C CSS Color Module Level 4 specification — usable directly in CSS as keywords like 'crimson' or 'rebeccapurple'. See disclaimer for accuracy and trademark notes.

Accessibility

WCAG 2.1 contrast checks for Ghostwhite as a background.

Black text on this color

Sample text · 19.86 : 1
AA Normal
AA Large
AAA Normal
AAA Large

White text on this color

Sample text · 1.06 : 1
AA Normal
AA Large
AAA Normal
AAA Large

Shades, tints & tonal scale of Ghostwhite

An 11-step tonal scale derived from Ghostwhite (#F8F8FF). Click any swatch to copy its HEX. Use these as a starting point for design tokens, hover states, and disabled states in a design system.

Copied #FEFEFF

50

#FEFEFF

#FEFEFF

Copied #FEFEFF

100

#FEFEFF

#FEFEFF

Copied #FDFDFF

200

#FDFDFF

#FDFDFF

Copied #FCFCFF

300

#FCFCFF

#FCFCFF

Copied #FAFAFF

400

#FAFAFF

#FAFAFF

Copied #F8F8FF

500

#F8F8FF

#F8F8FF

Copied #D3D3D9

600

#D3D3D9

#D3D3D9

Copied #A1A1A6

700

#A1A1A6

#A1A1A6

Copied #707073

800

#707073

#707073

Copied #3E3E40

900

#3E3E40

#3E3E40

Copied #1E1E1F

950

#1E1E1F

#1E1E1F

Lighter tints (mixed with white)

Copied #F9F9FF

15%

#F9F9FF

Copied #FAFAFF

30%

#FAFAFF

Copied #FBFBFF

45%

#FBFBFF

Copied #FCFCFF

60%

#FCFCFF

Copied #FDFDFF

75%

#FDFDFF

Darker shades (mixed with black)

Copied #E7E7ED

15%

#E7E7ED

Copied #D4D4DA

30%

#D4D4DA

Copied #BEBEC4

45%

#BEBEC4

Copied #A5A5AA

60%

#A5A5AA

Copied #858589

75%

#858589

Color harmonies for Ghostwhite

Classic color-theory harmonies derived from rotating the hue of Ghostwhite. Use these to build accent palettes, brand systems, and accessible UI color pairings.

Complementary

180° opposite — strongest contrast

Copied #F8F8FF

#F8F8FF

#F8F8FF

Copied #FFFFFA

#FFFFFA

#FFFFFA

Triadic

Three colors 120° apart

Copied #F8F8FF

#F8F8FF

#F8F8FF

Copied #FFFAFA

#FFFAFA

#FFFAFA

Copied #FAFFFA

#FAFFFA

#FAFFFA

Analogous

Two neighbors ±30° on the wheel

Copied #FAFCFF

#FAFCFF

#FAFCFF

Copied #F8F8FF

#F8F8FF

#F8F8FF

Copied #FCFAFF

#FCFAFF

#FCFAFF

Split-complementary

Base + two colors flanking its complement

Copied #F8F8FF

#F8F8FF

#F8F8FF

Copied #FFFCFA

#FFFCFA

#FFFCFA

Copied #FCFFFA

#FCFFFA

#FCFFFA

Tetradic

Two complementary pairs

Copied #F8F8FF

#F8F8FF

#F8F8FF

Copied #FFFAFF

#FFFAFF

#FFFAFF

Copied #FFFFFA

#FFFFFA

#FFFFFA

Copied #FAFFFA

#FAFFFA

#FAFFFA

Square

Four colors evenly spaced 90° apart

Copied #F8F8FF

#F8F8FF

#F8F8FF

Copied #FFFAFC

#FFFAFC

#FFFAFC

Copied #FFFFFA

#FFFFFA

#FFFFFA

Copied #FAFFFC

#FAFFFC

#FAFFFC

Ghostwhite in every color space

Full conversion of Ghostwhite across the color spaces designers and developers actually use — including OKLCH (the perceptually-uniform space that powers Tailwind v4 and CSS Color Module Level 4) and HWB.

HEX

#F8F8FF

RGB

rgb(248, 248, 255)

CMYK

cmyk(3%, 3%, 0%, 0%)

HSL

hsl(240, 100%, 99%)

HSV

hsv(240, 3%, 100%)

HWB

hwb(240 97% 0%)

CIE Lab

lab(97.8 1.3 -3.4)

OKLCH

oklch(98.1% 0.009 286.2)

XYZ (D65)

xyz(90.33, 94.31, 108.03)

Copy-ready code for Ghostwhite

Drop-in snippets for CSS, Tailwind, Sass, iOS Swift, and Android XML. Click the copy button on any snippet to put it on your clipboard.

CSS

color: #F8F8FF;
background-color: #F8F8FF;

CSS variable

:root {
  --color-ghostwhite: #F8F8FF;
}

Tailwind config

// tailwind.config.js
colors: {
  'ghostwhite': '#F8F8FF',
}

Sass

$color-ghostwhite: #F8F8FF;

Swift UIColor

UIColor(red: 0.973, green: 0.973, blue: 1.000, alpha: 1.0)

Android XML

<color name="ghostwhite">#F8F8FF</color>

Closest match in every color system

The nearest Ghostwhite equivalent in every other color system on this site, ranked by ΔE2000 perceptual distance. Useful when translating between design-system, web-standard, and industrial color references.

Closest in CSS Named Colors

Top 6 ΔE2000-closest entries within the same collection.

Top 6 ΔE2000-closest Pantone references. Cross-system matching is approximate — see disclaimer.

Top 6 ΔE2000-closest RAL Classic references for industrial coating cross-reference.

Copied #F6F6F6

RAL 9016

#F6F6F6

Traffic white

Copied #F4F4F4

RAL 9003

#F4F4F4

Signal white

Copied #FFFFFF

RAL 9010

#FFFFFF

Pure white

Copied #D7D7D7

RAL 7035

#D7D7D7

Light grey

Copied #D7D7D7

RAL 9018

#D7D7D7

Papyrus white

Copied #FDF4E3

RAL 9001

#FDF4E3

Cream

FAQ about Ghostwhite

What is the HEX code for Ghostwhite?

Ghostwhite (ghostwhite) has the HEX code #F8F8FF. In RGB it is rgb(248, 248, 255), and in CMYK it is cmyk(3%, 3%, 0%, 0%).

What is the OKLCH value of Ghostwhite?

Ghostwhite converts to oklch(0.981 0.009 286.2). OKLCH is the perceptually uniform color space used by Tailwind v4 and CSS Color Module Level 4.

Is Ghostwhite accessible for body text?

Used as a background, Ghostwhite has a contrast ratio of 19.86:1 with black text and 1.06:1 with white text. WCAG 2.1 AA requires 4.5:1 for normal text. The current recommendation is to use black text and verify in real UI context.

What is the closest Pantone to Ghostwhite?

The closest Pantone reference to Ghostwhite by ΔE2000 perceptual distance is Pantone Cool Gray 1 C (#D9D9D6). Cross-system Pantone matching is approximate; for color-critical print work, verify with a physical Pantone guide.

What is the closest RAL color to Ghostwhite?

The closest RAL Classic reference to Ghostwhite by ΔE2000 distance is RAL 9016 (Traffic white, #F6F6F6). RAL is a German industrial coating standard commonly used for paint, powder coat, and architectural specification.

What is the complementary color of Ghostwhite?

The complementary color (180° opposite on the HSL color wheel) of Ghostwhite is #FFFFFA. Use it for high-contrast accents, error states, or call-to-action pairings.

Data provenance & source

CSS Named Colors (CSS Color Module Level 4)

The 147 named colors defined by the W3C CSS Color Module Level 4 specification. Origin: VGA (16) + X11 (rest) + 'rebeccapurple'. Use as a reference for web color names that all browsers natively support. Names like 'crimson' or 'rebeccapurple' work as CSS values without any framework.

Source type
derived
Confidence
high
License
W3C permissive document license
Last reviewed
2026-05-24

Workflow tags

css
web-standard
named-keyword
blue

CSS named colors are sRGB digital values defined for browsers. For print, convert to a process-appropriate color and proof against substrate.

CSS Named Colors · Ghostwhite — #F8F8FF | PantoneTools