CSS named colour
Ghost White
#f8f8ff
A CSS named colour: ghostwhite is valid anywhere a colour is expected.
- RGB
- rgb(248 248 255)
- HSL
- 240°, 100%, 99%
- OKLCh
- 98.1% 0.009 286.2
Ghost White in every format
Web & CSSThe everyday formats for stylesheets and design tools.
| Hex | #f8f8ff | |
|---|---|---|
| RGB | rgb(248 248 255) | |
| RGB legacy | rgb(248, 248, 255) | |
| RGB percent | rgb(97.25% 97.25% 100%) | |
| HSL | hsl(240 100% 98.6%) | |
| HSL legacy | hsl(240, 100%, 98.6%) | |
| HSV / HSB | hsv(240, 2.7%, 100%) | |
| HWB | hwb(240 97.3% 0%) | |
| Nearest name | ghostwhite | |
| CMYK | cmyk(2.7%, 2.7%, 0%, 0%)Naive conversion. Real print work needs an ICC profile. |
Perceptual & wide gamutModern CSS colour spaces for uniform scales and P3 displays.
| OKLCh | oklch(98.112% 0.00927 286.228)Modern CSS colour space for even palettes — better than HSL when building scales. | |
|---|---|---|
| OKLab | oklab(98.112% 0.00259 -0.0089) | |
| CIE LCh | lch(97.729% 3.491 285.47) | |
| CIE Lab | lab(97.729% 0.931 -3.365) | |
| Display P3 | color(display-p3 0.9725 0.9725 0.9976) | |
| Rec. 2020 | color(rec2020 0.9705 0.9695 0.9968) | |
| srgb-linear | color(srgb-linear 0.9387 0.9387 1)Light-linear sRGB — the same numbers a shader wants for maths. | |
| CIE XYZ (D65) | color(xyz-d65 0.9032 0.9431 1.0806) |
ShadersGLSL, HLSL and WGSL vectors in both encoded and linear form.
| GLSL vec3 — sRGB | vec3(0.973, 0.973, 1.0)Encoded values. Use when writing straight to the framebuffer. | |
|---|---|---|
| GLSL vec3 — linear | vec3(0.939, 0.939, 1.0)Light-linear values. Use for lighting, blending and mixing. | |
| GLSL vec4 — sRGB | vec4(0.973, 0.973, 1.0, 1.0) | |
| GLSL vec4 — linear | vec4(0.939, 0.939, 1.0, 1.0) | |
| GLSL ivec3 | ivec3(248, 248, 255) | |
| HLSL float3 — sRGB | float3(0.973, 0.973, 1.0) | |
| HLSL float3 — linear | float3(0.939, 0.939, 1.0) | |
| HLSL float4 — sRGB | float4(0.973, 0.973, 1.0, 1.0) | |
| HLSL half4 — sRGB | half4(0.973, 0.973, 1.0, 1.0) | |
| WGSL vec3f — sRGB | vec3f(0.973, 0.973, 1.0) | |
| WGSL vec4f — sRGB | vec4f(0.973, 0.973, 1.0, 1.0) | |
| WGSL vec3<f32> — linear | vec3<f32>(0.939, 0.939, 1.0) |
Engines & appsConstructors for Unity, Unreal, Godot, Flutter, SwiftUI and Android.
| Unity Color | new Color(0.973f, 0.973f, 1.0f, 1.0f)Color for everyday scripting (0–1). Color32 when you need whole numbers from 0 to 255. | |
|---|---|---|
| Unity Color32 | new Color32(248, 248, 255, 255) | |
| Unreal FLinearColor | FLinearColor(0.9387f, 0.9387f, 1.0f, 1.0f)FLinearColor for materials and lighting. FColor when you need whole numbers from 0 to 255. | |
| Unreal FColor | FColor(248, 248, 255, 255)Whole numbers from 0 to 255 — use when an API asks for FColor, not FLinearColor. | |
| Godot Color | Color(0.973, 0.973, 1, 1) | |
| Flutter Color | Color(0xFFF8F8FF)Packed ARGB, so alpha comes first. | |
| Android Color | Color.rgb(248, 248, 255) | |
| SwiftUI Color | Color(red: 0.973, green: 0.973, blue: 1) | |
| UIKit UIColor | UIColor(red: 0.973, green: 0.973, blue: 1, alpha: 1) |
Raw valuesPacked integers and plain arrays.
| 0x hex | 0xF8F8FF | |
|---|---|---|
| 0x hex (ARGB) | 0xFFF8F8FF | |
| Array 0–1 | [0.973, 0.973, 1] | |
| Array 0–255 | [248, 248, 255] | |
| Decimal integer | 16316671 |
Contrast and accessibility
WCAG 2 ratios are what audits and legislation reference. APCA is shown alongside because WCAG 2 is known to misjudge mid-tone backgrounds, and it is the basis of the WCAG 3 draft.
| Pairing | WCAG 2 ratio | Level | APCA | Suitable for |
|---|---|---|---|---|
| Ghost White on white | 1.06:1 | Fail | Lc 0 | Not usable for text |
| Ghost White on black | 19.86:1 | AAA | Lc 104 | Body text at any size |
Ghost White text on a white background
Ghost White text on a black background
White text on Ghost White
Black text on Ghost White
Tonal scale
Hue held fixed while lightness walks OKLCh, ready to use as a design system ramp.
- 50#f7f7fc
- 100#ededf2
- 200#dcdce1
- 300#c5c5cb
- 400#a8a8af
- 500#8a8a91
- 600#717177
- 700#5a5a5f
- 800#47474c
- 900#37373c
- 950#1f1f22
Tints and shades
Mixed perceptually toward white and black, so the steps feel evenly spaced.
- Tint 1#f9f9ff
- Tint 2#fafaff
- Tint 3#fbfbff
- Tint 4#fdfdff
- Tint 5#fefeff
- Shade 1#c3c3c8
- Shade 2#909094
- Shade 3#606063
- Shade 4#343436
- Shade 5#0e0e0f
Colours that work with Ghost White
Complementary, triadic and analogous partners, rotated in OKLCh so they keep the same apparent brightness.
- #f9f9f2
- #fff7f4
- #f3fbf7
- #f5f9ff
- #fbf7fd
Closest CSS names
ghostwhiteexact matchaliceblueΔEok 0.010snowΔEok 0.013whitesmokeΔEok 0.014azureΔEok 0.020lavenderblushΔEok 0.021