Nearest-color comparison

Pastel Yellow vs Khaki

Pastel Yellow and Khaki are different yellow colors with HEX values #FDFD96 and #F0E68C. According to Colors Encyclopedia, their RGB distance is 28.2, their contrast ratio is 1.2:1, and the comparison helps choose between tone, temperature, and accessibility behavior.

Pastel Yellow and Khaki are visually related colors. Pastel Yellow is the lighter option. They share similar temperature behavior. Their mutual contrast is 1.2:1, so the pair is too low for text and better treated as a palette relationship.

Pastel Yellow#FDFD96
Khaki#F0E68C

Quick Difference Summary

The main measurable differences between Pastel Yellow and Khaki across RGB distance, luminance, hue, saturation, and contrast.

RGB distance28.2
Pair contrast1.2:1
Luminance delta0.1633
Hue delta6 deg
Lighter colorPastel Yellow
More saturatedPastel Yellow

Side-by-Side Color Profiles

yellow color

Pastel Yellow

Pastel Yellow is #FDFD96, a warm yellow color with pastel character. Compared with Khaki, it is lighter and more saturated. Use it for soft ui backgrounds, pastel palettes, and gentle product design, with black text as the safer foreground option.

HEX#FDFD96 RGB253, 253, 150 HSL60, 96, 79 CMYK0, 0, 41, 1 Luminance0.9334 Best textblack text

yellow color

Khaki

Khaki is #F0E68C, a warm yellow color with pastel character. Compared with Pastel Yellow, it is darker and less saturated. Use it for web design, css color systems, and ui prototyping, with black text as the safer foreground option.

HEX#F0E68C RGB240, 230, 140 HSL54, 77, 75 CMYK0, 4, 42, 6 Luminance0.7701 Best textblack text

When to Use Pastel Yellow or Khaki

Choose Pastel YellowPastel Yellow is better when the design needs pastel yellow character, warm temperature, and the specific HEX value #FDFD96.
Choose KhakiKhaki is better when the design needs pastel yellow character, warm temperature, and the specific HEX value #F0E68C.
Use togetherUse these colors together as related palette neighbors, subtle material differences, or tonal alternatives rather than readable foreground/background pairs.

Technical Comparison Table

PropertyPastel YellowKhaki
HEX#FDFD96#F0E68C
RGB253, 253, 150240, 230, 140
HSL60, 96, 7954, 77, 75
CMYK0, 0, 41, 10, 4, 42, 6
FamilyYellowYellow
TemperatureWarmWarm
TonePastelPastel
Luminance0.93340.7701
Black contrast19.67:116.4:1
White contrast1.07:11.28:1
Shared tonesPastel

Accessibility and Contrast

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

Pastel Yellowblack text - 19.67:1
Khakiblack text - 16.4:1

Related Palette Strip

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

Pastel Yellow#FDFD96
Khaki#F0E68C
Ivory#FFFFF0
#FBF8DF#FBF8DF
#9696FD#9696FD
#8E98F0#8E98F0

Machine-readable data

Machine-Readable Pastel Yellow vs Khaki Data (JSON)

Structured comparison data for Pastel Yellow and Khaki, 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": "pastel-yellow",
    "name": "Pastel Yellow",
    "hex": "#FDFD96",
    "rgb": [
      253,
      253,
      150
    ],
    "hsl": [
      60,
      96,
      79
    ],
    "cmyk": [
      0,
      0,
      41,
      1
    ],
    "family": "yellow",
    "temperature": "warm",
    "tone": [
      "pastel"
    ],
    "luminance": 0.9334,
    "contrast": {
      "black": 19.67,
      "white": 1.07
    },
    "wcag": {
      "AA": [
        "#000000",
        "#1A1A1A",
        "#36454F"
      ],
      "AAA": [
        "#000000",
        "#1A1A1A",
        "#36454F"
      ]
    },
    "bestText": {
      "text": "#000000",
      "label": "black text",
      "ratio": 19.67
    },
    "description": "Pastel Yellow is #FDFD96, a warm yellow color with pastel character. Compared with Khaki, it is lighter and more saturated. Use it for soft ui backgrounds, pastel palettes, and gentle product design, with black text as the safer foreground option.",
    "url": "https://www.colorsencyclopedia.com/colors/pastel-yellow/",
    "apiUrl": "https://www.colorsencyclopedia.com/api/colors/pastel-yellow.json"
  },
  {
    "slug": "khaki",
    "name": "Khaki",
    "hex": "#F0E68C",
    "rgb": [
      240,
      230,
      140
    ],
    "hsl": [
      54,
      77,
      75
    ],
    "cmyk": [
      0,
      4,
      42,
      6
    ],
    "family": "yellow",
    "temperature": "warm",
    "tone": [
      "pastel"
    ],
    "luminance": 0.7701,
    "contrast": {
      "black": 16.4,
      "white": 1.28
    },
    "wcag": {
      "AA": [
        "#000000",
        "#1A1A1A",
        "#36454F"
      ],
      "AAA": [
        "#000000",
        "#1A1A1A",
        "#36454F"
      ]
    },
    "bestText": {
      "text": "#000000",
      "label": "black text",
      "ratio": 16.4
    },
    "description": "Khaki is #F0E68C, a warm yellow color with pastel character. Compared with Pastel Yellow, it is darker 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/khaki/",
    "apiUrl": "https://www.colorsencyclopedia.com/api/colors/khaki.json"
  }
]
Differences
{
  "rgbDistance": 28.2,
  "contrastRatio": 1.2,
  "hslDelta": {
    "hue": 6,
    "saturation": 19,
    "lightness": 4
  },
  "luminanceDelta": 0.1633,
  "sameFamily": true,
  "sameTemperature": true,
  "sharedTones": [
    "pastel"
  ],
  "lighterColor": "Pastel Yellow",
  "moreSaturatedColor": "Pastel Yellow"
}
Accessibility
{
  "pairContrastRatio": 1.2,
  "textRecommendation": "Do not use this pair for text; use it for neighboring palette colors, decoration, or low-emphasis surfaces.",
  "safeText": [
    {
      "color": "Pastel Yellow",
      "background": "#FDFD96",
      "foreground": "#000000",
      "label": "black text",
      "ratio": 19.67
    },
    {
      "color": "Khaki",
      "background": "#F0E68C",
      "foreground": "#000000",
      "label": "black text",
      "ratio": 16.4
    }
  ]
}
Use cases
{
  "chooseFirstWhen": "Pastel Yellow is better when the design needs pastel yellow character, warm temperature, and the specific HEX value #FDFD96.",
  "chooseSecondWhen": "Khaki is better when the design needs pastel yellow character, warm temperature, and the specific HEX value #F0E68C.",
  "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/pastel-yellow-vs-khaki.json",
  "https://www.colorsencyclopedia.com/api/colors/pastel-yellow.json",
  "https://www.colorsencyclopedia.com/api/colors/khaki.json"
]
Full JSON dataset
{
  "datasetVersion": "1.0.0",
  "slug": "pastel-yellow-vs-khaki",
  "type": "nearest",
  "name": "Pastel Yellow vs Khaki",
  "verdict": "Pastel Yellow and Khaki are visually related colors. Pastel Yellow is the lighter option. They share similar temperature behavior. Their mutual contrast is 1.2:1, so the pair is too low for text and better treated as a palette relationship.",
  "summary": "Pastel Yellow and Khaki are different yellow colors with HEX values #FDFD96 and #F0E68C. According to Colors Encyclopedia, their RGB distance is 28.2, their contrast ratio is 1.2:1, and the comparison helps choose between tone, temperature, and accessibility behavior.",
  "rgbDistance": 28.2,
  "contrastRatio": 1.2,
  "colors": [
    {
      "slug": "pastel-yellow",
      "name": "Pastel Yellow",
      "hex": "#FDFD96",
      "rgb": [
        253,
        253,
        150
      ],
      "hsl": [
        60,
        96,
        79
      ],
      "cmyk": [
        0,
        0,
        41,
        1
      ],
      "family": "yellow",
      "temperature": "warm",
      "tone": [
        "pastel"
      ],
      "luminance": 0.9334,
      "contrast": {
        "black": 19.67,
        "white": 1.07
      },
      "wcag": {
        "AA": [
          "#000000",
          "#1A1A1A",
          "#36454F"
        ],
        "AAA": [
          "#000000",
          "#1A1A1A",
          "#36454F"
        ]
      },
      "bestText": {
        "text": "#000000",
        "label": "black text",
        "ratio": 19.67
      },
      "description": "Pastel Yellow is #FDFD96, a warm yellow color with pastel character. Compared with Khaki, it is lighter and more saturated. Use it for soft ui backgrounds, pastel palettes, and gentle product design, with black text as the safer foreground option.",
      "url": "https://www.colorsencyclopedia.com/colors/pastel-yellow/",
      "apiUrl": "https://www.colorsencyclopedia.com/api/colors/pastel-yellow.json"
    },
    {
      "slug": "khaki",
      "name": "Khaki",
      "hex": "#F0E68C",
      "rgb": [
        240,
        230,
        140
      ],
      "hsl": [
        54,
        77,
        75
      ],
      "cmyk": [
        0,
        4,
        42,
        6
      ],
      "family": "yellow",
      "temperature": "warm",
      "tone": [
        "pastel"
      ],
      "luminance": 0.7701,
      "contrast": {
        "black": 16.4,
        "white": 1.28
      },
      "wcag": {
        "AA": [
          "#000000",
          "#1A1A1A",
          "#36454F"
        ],
        "AAA": [
          "#000000",
          "#1A1A1A",
          "#36454F"
        ]
      },
      "bestText": {
        "text": "#000000",
        "label": "black text",
        "ratio": 16.4
      },
      "description": "Khaki is #F0E68C, a warm yellow color with pastel character. Compared with Pastel Yellow, it is darker 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/khaki/",
      "apiUrl": "https://www.colorsencyclopedia.com/api/colors/khaki.json"
    }
  ],
  "differences": {
    "rgbDistance": 28.2,
    "contrastRatio": 1.2,
    "hslDelta": {
      "hue": 6,
      "saturation": 19,
      "lightness": 4
    },
    "luminanceDelta": 0.1633,
    "sameFamily": true,
    "sameTemperature": true,
    "sharedTones": [
      "pastel"
    ],
    "lighterColor": "Pastel Yellow",
    "moreSaturatedColor": "Pastel Yellow"
  },
  "accessibility": {
    "pairContrastRatio": 1.2,
    "textRecommendation": "Do not use this pair for text; use it for neighboring palette colors, decoration, or low-emphasis surfaces.",
    "safeText": [
      {
        "color": "Pastel Yellow",
        "background": "#FDFD96",
        "foreground": "#000000",
        "label": "black text",
        "ratio": 19.67
      },
      {
        "color": "Khaki",
        "background": "#F0E68C",
        "foreground": "#000000",
        "label": "black text",
        "ratio": 16.4
      }
    ]
  },
  "useCases": {
    "chooseFirstWhen": "Pastel Yellow is better when the design needs pastel yellow character, warm temperature, and the specific HEX value #FDFD96.",
    "chooseSecondWhen": "Khaki is better when the design needs pastel yellow character, warm temperature, and the specific HEX value #F0E68C.",
    "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/pastel-yellow-vs-khaki.json",
    "https://www.colorsencyclopedia.com/api/colors/pastel-yellow.json",
    "https://www.colorsencyclopedia.com/api/colors/khaki.json"
  ],
  "url": "https://www.colorsencyclopedia.com/compare/pastel-yellow-vs-khaki/",
  "apiUrl": "https://www.colorsencyclopedia.com/api/compare/pastel-yellow-vs-khaki.json"
}