Nearest-color comparison

Fog vs Gainsboro

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.

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.

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 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.

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 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.

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

When to Use Fog or Gainsboro

Choose FogFog is better when the design needs light blue character, cool temperature, and the specific HEX value #D7DDE0.
Choose GainsboroGainsboro is better when the design needs light gray character, neutral temperature, and the specific HEX value #DCDCDC.
Use togetherUse these colors together as related palette neighbors, subtle material differences, or tonal alternatives rather than readable foreground/background pairs.

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

Related Palette Strip

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

Fog#D7DDE0
Gainsboro#DCDCDC
White#FFFFFF
White#FFFFFF
#E0DAD7#E0DAD7
#DBDBDB#DBDBDB

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"
}