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
Full JSON dataset
{
"datasetVersion": "1.0.0",
"slug": "cornsilk-vs-light-yellow",
"type": "nearest",
"name": "Cornsilk vs Light Yellow",
"verdict": "Cornsilk and Light Yellow are very close colors. Light Yellow is the lighter option. They share similar temperature behavior. Their mutual contrast is 1.05:1, so the pair is too low for text and better treated as a palette relationship.",
"summary": "Cornsilk and Light Yellow are different yellow colors with HEX values #FFF8DC and #FFFFE0. According to Colors Encyclopedia, their RGB distance is 8.1, their contrast ratio is 1.05:1, and the comparison helps choose between tone, temperature, and accessibility behavior.",
"rgbDistance": 8.1,
"contrastRatio": 1.05,
"colors": [
{
"slug": "cornsilk",
"name": "Cornsilk",
"hex": "#FFF8DC",
"rgb": [
255,
248,
220
],
"hsl": [
48,
100,
93
],
"cmyk": [
0,
3,
14,
0
],
"family": "yellow",
"temperature": "warm",
"tone": [
"light",
"pastel"
],
"luminance": 0.9356,
"contrast": {
"black": 19.71,
"white": 1.07
},
"wcag": {
"AA": [
"#000000",
"#1A1A1A",
"#36454F"
],
"AAA": [
"#000000",
"#1A1A1A",
"#36454F"
]
},
"bestText": {
"text": "#000000",
"label": "black text",
"ratio": 19.71
},
"description": "Cornsilk is #FFF8DC, a warm yellow color with light and pastel character. Compared with Light Yellow, it is darker and similar in saturation. 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/cornsilk/",
"apiUrl": "https://www.colorsencyclopedia.com/api/colors/cornsilk.json"
},
{
"slug": "light-yellow",
"name": "Light Yellow",
"hex": "#FFFFE0",
"rgb": [
255,
255,
224
],
"hsl": [
60,
100,
94
],
"cmyk": [
0,
0,
12,
0
],
"family": "yellow",
"temperature": "warm",
"tone": [
"light",
"pastel"
],
"luminance": 0.9816,
"contrast": {
"black": 20.63,
"white": 1.02
},
"wcag": {
"AA": [
"#000000",
"#1A1A1A",
"#36454F"
],
"AAA": [
"#000000",
"#1A1A1A",
"#36454F"
]
},
"bestText": {
"text": "#000000",
"label": "black text",
"ratio": 20.63
},
"description": "Light Yellow is #FFFFE0, a warm yellow color with light and pastel character. Compared with Cornsilk, it is lighter and similar in saturation. 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/light-yellow/",
"apiUrl": "https://www.colorsencyclopedia.com/api/colors/light-yellow.json"
}
],
"differences": {
"rgbDistance": 8.1,
"contrastRatio": 1.05,
"hslDelta": {
"hue": 12,
"saturation": 0,
"lightness": 1
},
"luminanceDelta": 0.046,
"sameFamily": true,
"sameTemperature": true,
"sharedTones": [
"light",
"pastel"
],
"lighterColor": "Light Yellow",
"moreSaturatedColor": "Cornsilk"
},
"accessibility": {
"pairContrastRatio": 1.05,
"textRecommendation": "Do not use this pair for text; use it for neighboring palette colors, decoration, or low-emphasis surfaces.",
"safeText": [
{
"color": "Cornsilk",
"background": "#FFF8DC",
"foreground": "#000000",
"label": "black text",
"ratio": 19.71
},
{
"color": "Light Yellow",
"background": "#FFFFE0",
"foreground": "#000000",
"label": "black text",
"ratio": 20.63
}
]
},
"useCases": {
"chooseFirstWhen": "Cornsilk is better when the design needs light and pastel yellow character, warm temperature, and the specific HEX value #FFF8DC.",
"chooseSecondWhen": "Light Yellow is better when the design needs light and pastel yellow character, warm temperature, and the specific HEX value #FFFFE0.",
"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/cornsilk-vs-light-yellow.json",
"https://www.colorsencyclopedia.com/api/colors/cornsilk.json",
"https://www.colorsencyclopedia.com/api/colors/light-yellow.json"
],
"url": "https://www.colorsencyclopedia.com/compare/cornsilk-vs-light-yellow/",
"apiUrl": "https://www.colorsencyclopedia.com/api/compare/cornsilk-vs-light-yellow.json"
}