colorsBoth named color records with HEX, RGB, HSL, CMYK, luminance, WCAG, and links
differencesRGB distance, HSL deltas, luminance delta, contrast, and shared attributes
accessibilityPair contrast and safer text choices for each color
useCasesWhen to choose each color and when to use them together
relatedApiMachine-readable comparison and color endpoints
Full JSON dataset
{
"datasetVersion": "1.0.0",
"slug": "white-vs-ghost-white",
"type": "nearest",
"name": "White vs Ghost White",
"verdict": "White and Ghost White are very close colors. White is the lighter option. They share similar temperature behavior. Their mutual contrast is 1.06:1, so the pair is too low for text and better treated as a palette relationship.",
"summary": "White and Ghost White are different gray and blue colors with HEX values #FFFFFF and #F8F8FF. According to Colors Encyclopedia, their RGB distance is 9.9, their contrast ratio is 1.06:1, and the comparison helps choose between tone, temperature, and accessibility behavior.",
"rgbDistance": 9.9,
"contrastRatio": 1.06,
"colors": [
{
"slug": "white",
"name": "White",
"hex": "#FFFFFF",
"rgb": [
255,
255,
255
],
"hsl": [
0,
0,
100
],
"cmyk": [
0,
0,
0,
0
],
"family": "gray",
"temperature": "neutral",
"tone": [
"light",
"neutral"
],
"luminance": 1,
"contrast": {
"black": 21,
"white": 1
},
"wcag": {
"AA": [
"#000000",
"#1A1A1A",
"#36454F"
],
"AAA": [
"#000000",
"#1A1A1A",
"#36454F"
]
},
"bestText": {
"text": "#000000",
"label": "black text",
"ratio": 21
},
"description": "White is #FFFFFF, a neutral gray color with light and neutral character. Compared with Ghost White, it is lighter and less saturated. Use it for backgrounds, negative space, and high contrast, with black text as the safer foreground option.",
"url": "https://www.colorsencyclopedia.com/colors/white/",
"apiUrl": "https://www.colorsencyclopedia.com/api/colors/white.json"
},
{
"slug": "ghost-white",
"name": "Ghost White",
"hex": "#F8F8FF",
"rgb": [
248,
248,
255
],
"hsl": [
240,
100,
99
],
"cmyk": [
3,
3,
0,
0
],
"family": "blue",
"temperature": "cool",
"tone": [
"light",
"pastel"
],
"luminance": 0.9431,
"contrast": {
"black": 19.86,
"white": 1.06
},
"wcag": {
"AA": [
"#000000",
"#1A1A1A",
"#36454F"
],
"AAA": [
"#000000",
"#1A1A1A",
"#36454F"
]
},
"bestText": {
"text": "#000000",
"label": "black text",
"ratio": 19.86
},
"description": "Ghost White is #F8F8FF, a cool blue color with light and pastel character. Compared with White, it is darker and more saturated. Use it for web design, css color systems, and ui prototyping, with black text as the safer foreground option.",
"url": "https://www.colorsencyclopedia.com/colors/ghost-white/",
"apiUrl": "https://www.colorsencyclopedia.com/api/colors/ghost-white.json"
}
],
"differences": {
"rgbDistance": 9.9,
"contrastRatio": 1.06,
"hslDelta": {
"hue": 240,
"saturation": 100,
"lightness": 1
},
"luminanceDelta": 0.0569,
"sameFamily": false,
"sameTemperature": false,
"sharedTones": [
"light"
],
"lighterColor": "White",
"moreSaturatedColor": "Ghost White"
},
"accessibility": {
"pairContrastRatio": 1.06,
"textRecommendation": "Do not use this pair for text; use it for neighboring palette colors, decoration, or low-emphasis surfaces.",
"safeText": [
{
"color": "White",
"background": "#FFFFFF",
"foreground": "#000000",
"label": "black text",
"ratio": 21
},
{
"color": "Ghost White",
"background": "#F8F8FF",
"foreground": "#000000",
"label": "black text",
"ratio": 19.86
}
]
},
"useCases": {
"chooseFirstWhen": "White is better when the design needs light and neutral gray character, neutral temperature, and the specific HEX value #FFFFFF.",
"chooseSecondWhen": "Ghost White is better when the design needs light and pastel blue character, cool temperature, and the specific HEX value #F8F8FF.",
"useTogetherWhen": "Use these colors together as related palette neighbors, subtle material differences, or tonal alternatives rather than readable foreground/background pairs."
},
"relatedApi": [
"https://www.colorsencyclopedia.com/api/compare/white-vs-ghost-white.json",
"https://www.colorsencyclopedia.com/api/colors/white.json",
"https://www.colorsencyclopedia.com/api/colors/ghost-white.json"
],
"url": "https://www.colorsencyclopedia.com/compare/white-vs-ghost-white/",
"apiUrl": "https://www.colorsencyclopedia.com/api/compare/white-vs-ghost-white.json"
}