blue color
Fog
Fog is #D7DDE0, a cool blue with hue 200°, saturation 13% and luminance 0.7154. Beside Gainsboro, it is darker and more saturated. Of the two standard text choices, black text gives the higher contrast at 15.31:1.
Nearest-color comparison
Fog #D7DDE0 vs Gainsboro #DCDCDC: RGB distance 6.5 and contrast 1:1. Compare hue, luminance, saturation, WCAG and practical use.
Fog and Gainsboro are very close, with an RGB distance of 6.5. Gainsboro is lighter by 0.0003, and Fog is more saturated by 13 percentage points. Their mutual contrast is 1:1. The pair is too close for a readable foreground/background combination and works better as neighboring palette colors.
The main measurable differences between Fog and Gainsboro across RGB distance, luminance, hue, saturation, and contrast.
blue color
Fog is #D7DDE0, a cool blue with hue 200°, saturation 13% and luminance 0.7154. Beside Gainsboro, it is darker and more saturated. Of the two standard text choices, black text gives the higher contrast at 15.31:1.
gray color
Gainsboro is #DCDCDC, a neutral gray with hue 0°, saturation 0% and luminance 0.7157. Beside Fog, it is lighter and less saturated. Of the two standard text choices, black text gives the higher contrast at 15.31:1.
Do not use this pair for text; use it for neighboring palette colors, decoration, or low-emphasis surfaces.
Downloadable color comparison infographic
Save a high-resolution comparison infographic with both HEX colors, visual distance, mutual contrast, and accessibility guidance.

A compact visual strip showing the two compared colors with nearby harmony and variant context.
Machine-readable data
Structured comparison data for Fog and Gainsboro, including color systems, RGB distance, HSL deltas, contrast, accessibility guidance, use cases, and API links.
colorsBoth named color records with HEX, RGB, HSL, CMYK, luminance, WCAG, and linksdifferencesRGB distance, HSL deltas, luminance delta, contrast, and shared attributesaccessibilityPair contrast and safer text choices for each coloruseCasesWhen to choose each color and when to use them togetherrelatedApiMachine-readable comparison and color endpoints[
{
"slug": "fog",
"name": "Fog",
"hex": "#D7DDE0",
"rgb": [
215,
221,
224
],
"hsl": [
200,
13,
86
],
"cmyk": [
4,
1,
0,
12
],
"family": "blue",
"temperature": "cool",
"tone": [
"light"
],
"luminance": 0.7154,
"contrast": {
"black": 15.31,
"white": 1.37
},
"wcag": {
"AA": [
"#000000",
"#1A1A1A",
"#36454F"
],
"AAA": [
"#000000",
"#1A1A1A",
"#36454F"
]
},
"bestText": {
"text": "#000000",
"label": "black text",
"ratio": 15.31
},
"description": "Fog is #D7DDE0, a cool blue color with light character. Compared with Gainsboro, it is darker and more saturated. Use it for backgrounds, typography, and product surfaces, with black text as the safer foreground option.",
"url": "https://www.colorsencyclopedia.com/colors/fog/",
"apiUrl": "https://www.colorsencyclopedia.com/api/colors/fog.json"
},
{
"slug": "gainsboro",
"name": "Gainsboro",
"hex": "#DCDCDC",
"rgb": [
220,
220,
220
],
"hsl": [
0,
0,
86
],
"cmyk": [
0,
0,
0,
14
],
"family": "gray",
"temperature": "neutral",
"tone": [
"light"
],
"luminance": 0.7157,
"contrast": {
"black": 15.31,
"white": 1.37
},
"wcag": {
"AA": [
"#000000",
"#1A1A1A",
"#36454F"
],
"AAA": [
"#000000",
"#1A1A1A",
"#36454F"
]
},
"bestText": {
"text": "#000000",
"label": "black text",
"ratio": 15.31
},
"description": "Gainsboro is #DCDCDC, a neutral gray color with light character. Compared with Fog, it is lighter and less 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/gainsboro/",
"apiUrl": "https://www.colorsencyclopedia.com/api/colors/gainsboro.json"
}
]{
"rgbDistance": 6.5,
"contrastRatio": 1,
"hslDelta": {
"hue": 200,
"saturation": 13,
"lightness": 0
},
"luminanceDelta": 0.0003,
"sameFamily": false,
"sameTemperature": false,
"sharedTones": [
"light"
],
"lighterColor": "Gainsboro",
"moreSaturatedColor": "Fog"
}{
"pairContrastRatio": 1,
"textRecommendation": "Do not use this pair for text; use it for neighboring palette colors, decoration, or low-emphasis surfaces.",
"safeText": [
{
"color": "Fog",
"background": "#D7DDE0",
"foreground": "#000000",
"label": "black text",
"ratio": 15.31
},
{
"color": "Gainsboro",
"background": "#DCDCDC",
"foreground": "#000000",
"label": "black text",
"ratio": 15.31
}
]
}{
"chooseFirstWhen": "Fog is better when the design needs light blue character, cool temperature, and the specific HEX value #D7DDE0.",
"chooseSecondWhen": "Gainsboro is better when the design needs light gray character, neutral temperature, and the specific HEX value #DCDCDC.",
"useTogetherWhen": "Use these colors together as related palette neighbors, subtle material differences, or tonal alternatives rather than readable foreground/background pairs."
}[
"https://www.colorsencyclopedia.com/api/compare/fog-vs-gainsboro.json",
"https://www.colorsencyclopedia.com/api/colors/fog.json",
"https://www.colorsencyclopedia.com/api/colors/gainsboro.json"
]{
"datasetVersion": "1.0.0",
"slug": "fog-vs-gainsboro",
"type": "nearest",
"name": "Fog vs Gainsboro",
"verdict": "Fog and Gainsboro are very close colors. Gainsboro is the lighter option. They share similar temperature behavior. Their mutual contrast is 1:1, so the pair is too low for text and better treated as a palette relationship.",
"summary": "Fog and Gainsboro are different blue and gray colors with HEX values #D7DDE0 and #DCDCDC. According to Colors Encyclopedia, their RGB distance is 6.5, their contrast ratio is 1:1, and the comparison helps choose between tone, temperature, and accessibility behavior.",
"rgbDistance": 6.5,
"contrastRatio": 1,
"colors": [
{
"slug": "fog",
"name": "Fog",
"hex": "#D7DDE0",
"rgb": [
215,
221,
224
],
"hsl": [
200,
13,
86
],
"cmyk": [
4,
1,
0,
12
],
"family": "blue",
"temperature": "cool",
"tone": [
"light"
],
"luminance": 0.7154,
"contrast": {
"black": 15.31,
"white": 1.37
},
"wcag": {
"AA": [
"#000000",
"#1A1A1A",
"#36454F"
],
"AAA": [
"#000000",
"#1A1A1A",
"#36454F"
]
},
"bestText": {
"text": "#000000",
"label": "black text",
"ratio": 15.31
},
"description": "Fog is #D7DDE0, a cool blue color with light character. Compared with Gainsboro, it is darker and more saturated. Use it for backgrounds, typography, and product surfaces, with black text as the safer foreground option.",
"url": "https://www.colorsencyclopedia.com/colors/fog/",
"apiUrl": "https://www.colorsencyclopedia.com/api/colors/fog.json"
},
{
"slug": "gainsboro",
"name": "Gainsboro",
"hex": "#DCDCDC",
"rgb": [
220,
220,
220
],
"hsl": [
0,
0,
86
],
"cmyk": [
0,
0,
0,
14
],
"family": "gray",
"temperature": "neutral",
"tone": [
"light"
],
"luminance": 0.7157,
"contrast": {
"black": 15.31,
"white": 1.37
},
"wcag": {
"AA": [
"#000000",
"#1A1A1A",
"#36454F"
],
"AAA": [
"#000000",
"#1A1A1A",
"#36454F"
]
},
"bestText": {
"text": "#000000",
"label": "black text",
"ratio": 15.31
},
"description": "Gainsboro is #DCDCDC, a neutral gray color with light character. Compared with Fog, it is lighter and less 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/gainsboro/",
"apiUrl": "https://www.colorsencyclopedia.com/api/colors/gainsboro.json"
}
],
"differences": {
"rgbDistance": 6.5,
"contrastRatio": 1,
"hslDelta": {
"hue": 200,
"saturation": 13,
"lightness": 0
},
"luminanceDelta": 0.0003,
"sameFamily": false,
"sameTemperature": false,
"sharedTones": [
"light"
],
"lighterColor": "Gainsboro",
"moreSaturatedColor": "Fog"
},
"accessibility": {
"pairContrastRatio": 1,
"textRecommendation": "Do not use this pair for text; use it for neighboring palette colors, decoration, or low-emphasis surfaces.",
"safeText": [
{
"color": "Fog",
"background": "#D7DDE0",
"foreground": "#000000",
"label": "black text",
"ratio": 15.31
},
{
"color": "Gainsboro",
"background": "#DCDCDC",
"foreground": "#000000",
"label": "black text",
"ratio": 15.31
}
]
},
"useCases": {
"chooseFirstWhen": "Fog is better when the design needs light blue character, cool temperature, and the specific HEX value #D7DDE0.",
"chooseSecondWhen": "Gainsboro is better when the design needs light gray character, neutral temperature, and the specific HEX value #DCDCDC.",
"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/fog-vs-gainsboro.json",
"https://www.colorsencyclopedia.com/api/colors/fog.json",
"https://www.colorsencyclopedia.com/api/colors/gainsboro.json"
],
"url": "https://www.colorsencyclopedia.com/compare/fog-vs-gainsboro/",
"apiUrl": "https://www.colorsencyclopedia.com/api/compare/fog-vs-gainsboro.json"
}