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": "lavender-vs-milk-blue",
"type": "nearest",
"name": "Lavender vs Milk Blue",
"verdict": "Lavender and Milk Blue are very close colors. Lavender 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": "Lavender and Milk Blue are different purple and blue colors with HEX values #E6E6FA and #D6EAF8. According to Colors Encyclopedia, their RGB distance is 16.6, their contrast ratio is 1:1, and the comparison helps choose between tone, temperature, and accessibility behavior.",
"rgbDistance": 16.6,
"contrastRatio": 1,
"colors": [
{
"slug": "lavender",
"name": "Lavender",
"hex": "#E6E6FA",
"rgb": [
230,
230,
250
],
"hsl": [
240,
67,
94
],
"cmyk": [
8,
8,
0,
2
],
"family": "purple",
"temperature": "cool",
"tone": [
"pastel",
"light"
],
"luminance": 0.8032,
"contrast": {
"black": 17.06,
"white": 1.23
},
"wcag": {
"AA": [
"#000000",
"#1A1A1A",
"#36454F"
],
"AAA": [
"#000000",
"#1A1A1A",
"#36454F"
]
},
"bestText": {
"text": "#000000",
"label": "black text",
"ratio": 17.06
},
"description": "Lavender is #E6E6FA, a cool purple color with pastel and light character. Compared with Milk Blue, it is lighter and less saturated. Use it for wellness, beauty, and soft backgrounds, with black text as the safer foreground option.",
"url": "https://www.colorsencyclopedia.com/colors/lavender/",
"apiUrl": "https://www.colorsencyclopedia.com/api/colors/lavender.json"
},
{
"slug": "milk-blue",
"name": "Milk Blue",
"hex": "#D6EAF8",
"rgb": [
214,
234,
248
],
"hsl": [
205,
71,
91
],
"cmyk": [
14,
6,
0,
3
],
"family": "blue",
"temperature": "cool",
"tone": [
"light",
"pastel"
],
"luminance": 0.7992,
"contrast": {
"black": 16.98,
"white": 1.24
},
"wcag": {
"AA": [
"#000000",
"#1A1A1A",
"#36454F"
],
"AAA": [
"#000000",
"#1A1A1A",
"#36454F"
]
},
"bestText": {
"text": "#000000",
"label": "black text",
"ratio": 16.98
},
"description": "Milk Blue is #D6EAF8, a cool blue color with light and pastel character. Compared with Lavender, it is darker 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/milk-blue/",
"apiUrl": "https://www.colorsencyclopedia.com/api/colors/milk-blue.json"
}
],
"differences": {
"rgbDistance": 16.6,
"contrastRatio": 1,
"hslDelta": {
"hue": 35,
"saturation": 4,
"lightness": 3
},
"luminanceDelta": 0.004,
"sameFamily": false,
"sameTemperature": true,
"sharedTones": [
"pastel",
"light"
],
"lighterColor": "Lavender",
"moreSaturatedColor": "Milk Blue"
},
"accessibility": {
"pairContrastRatio": 1,
"textRecommendation": "Do not use this pair for text; use it for neighboring palette colors, decoration, or low-emphasis surfaces.",
"safeText": [
{
"color": "Lavender",
"background": "#E6E6FA",
"foreground": "#000000",
"label": "black text",
"ratio": 17.06
},
{
"color": "Milk Blue",
"background": "#D6EAF8",
"foreground": "#000000",
"label": "black text",
"ratio": 16.98
}
]
},
"useCases": {
"chooseFirstWhen": "Lavender is better when the design needs pastel and light purple character, cool temperature, and the specific HEX value #E6E6FA.",
"chooseSecondWhen": "Milk Blue is better when the design needs light and pastel blue character, cool temperature, and the specific HEX value #D6EAF8.",
"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/lavender-vs-milk-blue.json",
"https://www.colorsencyclopedia.com/api/colors/lavender.json",
"https://www.colorsencyclopedia.com/api/colors/milk-blue.json"
],
"url": "https://www.colorsencyclopedia.com/compare/lavender-vs-milk-blue/",
"apiUrl": "https://www.colorsencyclopedia.com/api/compare/lavender-vs-milk-blue.json"
}