Nearest-color comparison

Flax vs Khaki

Flax and Khaki are different yellow colors with HEX values #EEDC82 and #F0E68C. According to Colors Encyclopedia, their RGB distance is 14.3, their contrast ratio is 1.08:1, and the comparison helps choose between tone, temperature, and accessibility behavior.

Flax and Khaki are very close colors. Khaki is the lighter option. They share similar temperature behavior. Their mutual contrast is 1.08:1, so the pair is too low for text and better treated as a palette relationship.

Flax#EEDC82
Khaki#F0E68C

Quick Difference Summary

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

RGB distance14.3
Pair contrast1.08:1
Luminance delta0.0603
Hue delta4 deg
Lighter colorKhaki
More saturatedKhaki

Side-by-Side Color Profiles

yellow color

Flax

Flax is #EEDC82, a warm yellow color with vibrant character. Compared with Khaki, it is darker and less saturated. Use it for highlight colors, editorial accents, and warm backgrounds, with black text as the safer foreground option.

HEX#EEDC82 RGB238, 220, 130 HSL50, 76, 72 CMYK0, 8, 45, 7 Luminance0.7098 Best textblack text

yellow color

Khaki

Khaki is #F0E68C, a warm yellow color with pastel character. Compared with Flax, it is lighter and more 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 Flax or Khaki

Choose FlaxFlax is better when the design needs vibrant yellow character, warm temperature, and the specific HEX value #EEDC82.
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

PropertyFlaxKhaki
HEX#EEDC82#F0E68C
RGB238, 220, 130240, 230, 140
HSL50, 76, 7254, 77, 75
CMYK0, 8, 45, 70, 4, 42, 6
FamilyYellowYellow
TemperatureWarmWarm
ToneVibrantPastel
Luminance0.70980.7701
Black contrast15.2:116.4:1
White contrast1.38:11.28:1
Shared tonesNone

Accessibility and Contrast

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

Flaxblack text - 15.2:1
Khakiblack text - 16.4:1

Related Palette Strip

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

Flax#EEDC82
Khaki#F0E68C
#F9F2D2#F9F2D2
#FBF8DF#FBF8DF
#8193EE#8193EE
#8E98F0#8E98F0

Machine-readable data

Machine-Readable Flax vs Khaki Data (JSON)

Structured comparison data for Flax 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": "flax",
    "name": "Flax",
    "hex": "#EEDC82",
    "rgb": [
      238,
      220,
      130
    ],
    "hsl": [
      50,
      76,
      72
    ],
    "cmyk": [
      0,
      8,
      45,
      7
    ],
    "family": "yellow",
    "temperature": "warm",
    "tone": [
      "vibrant"
    ],
    "luminance": 0.7098,
    "contrast": {
      "black": 15.2,
      "white": 1.38
    },
    "wcag": {
      "AA": [
        "#000000",
        "#1A1A1A",
        "#36454F"
      ],
      "AAA": [
        "#000000",
        "#1A1A1A",
        "#36454F"
      ]
    },
    "bestText": {
      "text": "#000000",
      "label": "black text",
      "ratio": 15.2
    },
    "description": "Flax is #EEDC82, a warm yellow color with vibrant character. Compared with Khaki, it is darker and less saturated. Use it for highlight colors, editorial accents, and warm backgrounds, with black text as the safer foreground option.",
    "url": "https://www.colorsencyclopedia.com/colors/flax/",
    "apiUrl": "https://www.colorsencyclopedia.com/api/colors/flax.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 Flax, it is lighter 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/khaki/",
    "apiUrl": "https://www.colorsencyclopedia.com/api/colors/khaki.json"
  }
]
Differences
{
  "rgbDistance": 14.3,
  "contrastRatio": 1.08,
  "hslDelta": {
    "hue": 4,
    "saturation": 1,
    "lightness": 3
  },
  "luminanceDelta": 0.0603,
  "sameFamily": true,
  "sameTemperature": true,
  "sharedTones": [],
  "lighterColor": "Khaki",
  "moreSaturatedColor": "Khaki"
}
Accessibility
{
  "pairContrastRatio": 1.08,
  "textRecommendation": "Do not use this pair for text; use it for neighboring palette colors, decoration, or low-emphasis surfaces.",
  "safeText": [
    {
      "color": "Flax",
      "background": "#EEDC82",
      "foreground": "#000000",
      "label": "black text",
      "ratio": 15.2
    },
    {
      "color": "Khaki",
      "background": "#F0E68C",
      "foreground": "#000000",
      "label": "black text",
      "ratio": 16.4
    }
  ]
}
Use cases
{
  "chooseFirstWhen": "Flax is better when the design needs vibrant yellow character, warm temperature, and the specific HEX value #EEDC82.",
  "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/flax-vs-khaki.json",
  "https://www.colorsencyclopedia.com/api/colors/flax.json",
  "https://www.colorsencyclopedia.com/api/colors/khaki.json"
]
Full JSON dataset
{
  "datasetVersion": "1.0.0",
  "slug": "flax-vs-khaki",
  "type": "nearest",
  "name": "Flax vs Khaki",
  "verdict": "Flax and Khaki are very close colors. Khaki is the lighter option. They share similar temperature behavior. Their mutual contrast is 1.08:1, so the pair is too low for text and better treated as a palette relationship.",
  "summary": "Flax and Khaki are different yellow colors with HEX values #EEDC82 and #F0E68C. According to Colors Encyclopedia, their RGB distance is 14.3, their contrast ratio is 1.08:1, and the comparison helps choose between tone, temperature, and accessibility behavior.",
  "rgbDistance": 14.3,
  "contrastRatio": 1.08,
  "colors": [
    {
      "slug": "flax",
      "name": "Flax",
      "hex": "#EEDC82",
      "rgb": [
        238,
        220,
        130
      ],
      "hsl": [
        50,
        76,
        72
      ],
      "cmyk": [
        0,
        8,
        45,
        7
      ],
      "family": "yellow",
      "temperature": "warm",
      "tone": [
        "vibrant"
      ],
      "luminance": 0.7098,
      "contrast": {
        "black": 15.2,
        "white": 1.38
      },
      "wcag": {
        "AA": [
          "#000000",
          "#1A1A1A",
          "#36454F"
        ],
        "AAA": [
          "#000000",
          "#1A1A1A",
          "#36454F"
        ]
      },
      "bestText": {
        "text": "#000000",
        "label": "black text",
        "ratio": 15.2
      },
      "description": "Flax is #EEDC82, a warm yellow color with vibrant character. Compared with Khaki, it is darker and less saturated. Use it for highlight colors, editorial accents, and warm backgrounds, with black text as the safer foreground option.",
      "url": "https://www.colorsencyclopedia.com/colors/flax/",
      "apiUrl": "https://www.colorsencyclopedia.com/api/colors/flax.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 Flax, it is lighter 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/khaki/",
      "apiUrl": "https://www.colorsencyclopedia.com/api/colors/khaki.json"
    }
  ],
  "differences": {
    "rgbDistance": 14.3,
    "contrastRatio": 1.08,
    "hslDelta": {
      "hue": 4,
      "saturation": 1,
      "lightness": 3
    },
    "luminanceDelta": 0.0603,
    "sameFamily": true,
    "sameTemperature": true,
    "sharedTones": [],
    "lighterColor": "Khaki",
    "moreSaturatedColor": "Khaki"
  },
  "accessibility": {
    "pairContrastRatio": 1.08,
    "textRecommendation": "Do not use this pair for text; use it for neighboring palette colors, decoration, or low-emphasis surfaces.",
    "safeText": [
      {
        "color": "Flax",
        "background": "#EEDC82",
        "foreground": "#000000",
        "label": "black text",
        "ratio": 15.2
      },
      {
        "color": "Khaki",
        "background": "#F0E68C",
        "foreground": "#000000",
        "label": "black text",
        "ratio": 16.4
      }
    ]
  },
  "useCases": {
    "chooseFirstWhen": "Flax is better when the design needs vibrant yellow character, warm temperature, and the specific HEX value #EEDC82.",
    "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/flax-vs-khaki.json",
    "https://www.colorsencyclopedia.com/api/colors/flax.json",
    "https://www.colorsencyclopedia.com/api/colors/khaki.json"
  ],
  "url": "https://www.colorsencyclopedia.com/compare/flax-vs-khaki/",
  "apiUrl": "https://www.colorsencyclopedia.com/api/compare/flax-vs-khaki.json"
}