Nearest-color comparison

Fog vs Gainsboro

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.

Fog#D7DDE0
Gainsboro#DCDCDC

Quick Difference Summary

The main measurable differences between Fog and Gainsboro across RGB distance, luminance, hue, saturation, and contrast.

RGB distance6.5
Pair contrast1:1
Luminance delta0.0003
Hue delta200 deg
Lighter colorGainsboro
More saturatedFog

Side-by-Side Color Profiles

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.

HEX#D7DDE0 RGB215, 221, 224 HSL200, 13, 86 CMYK4, 1, 0, 12 Luminance0.7154 Best textblack text

gray color

Gainsboro

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.

HEX#DCDCDC RGB220, 220, 220 HSL0, 0, 86 CMYK0, 0, 0, 14 Luminance0.7157 Best textblack text

When to Use Fog or Gainsboro

Choose FogChoose Fog when the design calls for light blue color at #D7DDE0, with cool temperature and 86% HSL lightness.
Choose GainsboroChoose Gainsboro when #DCDCDC, its light gray character, or its 86% HSL lightness is the closer match.
Use togetherTreat them as tonal alternatives or adjacent palette steps, not as text and background. Their contrast is only 1:1. They share light tone characteristics.

Technical Comparison Table

PropertyFogGainsboro
HEX#D7DDE0#DCDCDC
RGB215, 221, 224220, 220, 220
HSL200, 13, 860, 0, 86
CMYK4, 1, 0, 120, 0, 0, 14
FamilyBlueGray
TemperatureCoolNeutral
ToneLightLight
Luminance0.71540.7157
Black contrast15.31:115.31:1
White contrast1.37:11.37:1
Shared tonesLight

Accessibility and Contrast

Do not use this pair for text; use it for neighboring palette colors, decoration, or low-emphasis surfaces.

Fogblack text - 15.31:1
Gainsboroblack text - 15.31:1

Downloadable color comparison infographic

Fog vs Gainsboro Color Comparison Infographic

Save a high-resolution comparison infographic with both HEX colors, visual distance, mutual contrast, and accessibility guidance.

1200 × 800
Fog vs Gainsboro color comparison infographic showing both HEX colors, RGB and HSL values, color distance, mutual contrast, and accessibility guidance.
Fog vs Gainsboro color comparison infographic generated from the canonical dataset values shown on this page.

Related Palette Strip

A compact visual strip showing the two compared colors with nearby harmony and variant context.

Machine-readable data

Machine-Readable Fog vs Gainsboro Data (JSON)

Structured comparison data for Fog and Gainsboro, including color systems, RGB distance, HSL deltas, contrast, accessibility guidance, use cases, and API links.

AI-Ready Dataset v1.0.0
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
Download JSON Open API
Structured sections
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
    }
  ]
}
Use cases
{
  "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."
}
Related API
[
  "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"
]
Full JSON dataset
{
  "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"
}