yellow color
Flax
Flax is #EEDC82, a warm yellow with hue 50°, saturation 76% and luminance 0.7098. Beside Khaki, it is darker and less saturated. Of the two standard text choices, black text gives the higher contrast at 15.2:1.
Nearest-color comparison
Flax #EEDC82 vs Khaki #F0E68C: RGB distance 14.3 and contrast 1.08:1. Compare hue, luminance, saturation, WCAG and practical use.
Flax and Khaki are very close, with an RGB distance of 14.3. Khaki is lighter by 0.0603, and Khaki is more saturated by 1 percentage points. Their mutual contrast is 1.08:1. The pair is too close for a readable foreground/background combination and works better as neighboring palette colors.
The main measurable differences between Flax and Khaki across RGB distance, luminance, hue, saturation, and contrast.
yellow color
Flax is #EEDC82, a warm yellow with hue 50°, saturation 76% and luminance 0.7098. Beside Khaki, it is darker and less saturated. Of the two standard text choices, black text gives the higher contrast at 15.2:1.
yellow color
Khaki is #F0E68C, a warm yellow with hue 54°, saturation 77% and luminance 0.7701. Beside Flax, it is lighter and more saturated. Of the two standard text choices, black text gives the higher contrast at 16.4: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 Flax and Khaki, 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": "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"
}
]{
"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"
}{
"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
}
]
}{
"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."
}[
"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"
]{
"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"
}