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": "indigo-vs-imperial-purple",
"type": "nearest",
"name": "Indigo vs Imperial Purple",
"verdict": "Indigo and Imperial Purple are visually related colors. Imperial Purple is the lighter option. They share similar temperature behavior. Their mutual contrast is 1.3:1, so the pair is too low for text and better treated as a palette relationship.",
"summary": "Indigo and Imperial Purple are different purple colors with HEX values #4B0082 and #602F6B. According to Colors Encyclopedia, their RGB distance is 56.4, their contrast ratio is 1.3:1, and the comparison helps choose between tone, temperature, and accessibility behavior.",
"rgbDistance": 56.4,
"contrastRatio": 1.3,
"colors": [
{
"slug": "indigo",
"name": "Indigo",
"hex": "#4B0082",
"rgb": [
75,
0,
130
],
"hsl": [
275,
100,
25
],
"cmyk": [
42,
100,
0,
49
],
"family": "purple",
"temperature": "cool",
"tone": [
"jewel-tone"
],
"luminance": 0.0311,
"contrast": {
"black": 1.62,
"white": 12.95
},
"wcag": {
"AA": [
"#FFFFFF",
"#F5F5F5"
],
"AAA": [
"#FFFFFF",
"#F5F5F5"
]
},
"bestText": {
"text": "#FFFFFF",
"label": "white text",
"ratio": 12.95
},
"description": "Indigo is #4B0082, a cool purple color with jewel tone character. Compared with Imperial Purple, it is darker and more saturated. Use it for web design, css color systems, and ui prototyping, with white text as the safer foreground option.",
"url": "https://www.colorsencyclopedia.com/colors/indigo/",
"apiUrl": "https://www.colorsencyclopedia.com/api/colors/indigo.json"
},
{
"slug": "imperial-purple",
"name": "Imperial Purple",
"hex": "#602F6B",
"rgb": [
96,
47,
107
],
"hsl": [
289,
39,
30
],
"cmyk": [
10,
56,
0,
58
],
"family": "purple",
"temperature": "cool",
"tone": [
"balanced"
],
"luminance": 0.0558,
"contrast": {
"black": 2.12,
"white": 9.92
},
"wcag": {
"AA": [
"#FFFFFF",
"#F5F5F5"
],
"AAA": [
"#FFFFFF",
"#F5F5F5"
]
},
"bestText": {
"text": "#FFFFFF",
"label": "white text",
"ratio": 9.92
},
"description": "Imperial Purple is #602F6B, a cool purple color with balanced character. Compared with Indigo, it is lighter and less saturated. Use it for historical references, pigment palettes, and cultural color systems, with white text as the safer foreground option.",
"url": "https://www.colorsencyclopedia.com/colors/imperial-purple/",
"apiUrl": "https://www.colorsencyclopedia.com/api/colors/imperial-purple.json"
}
],
"differences": {
"rgbDistance": 56.4,
"contrastRatio": 1.3,
"hslDelta": {
"hue": 14,
"saturation": 61,
"lightness": 5
},
"luminanceDelta": 0.0247,
"sameFamily": true,
"sameTemperature": true,
"sharedTones": [],
"lighterColor": "Imperial Purple",
"moreSaturatedColor": "Indigo"
},
"accessibility": {
"pairContrastRatio": 1.3,
"textRecommendation": "Do not use this pair for text; use it for neighboring palette colors, decoration, or low-emphasis surfaces.",
"safeText": [
{
"color": "Indigo",
"background": "#4B0082",
"foreground": "#FFFFFF",
"label": "white text",
"ratio": 12.95
},
{
"color": "Imperial Purple",
"background": "#602F6B",
"foreground": "#FFFFFF",
"label": "white text",
"ratio": 9.92
}
]
},
"useCases": {
"chooseFirstWhen": "Indigo is better when the design needs jewel tone purple character, cool temperature, and the specific HEX value #4B0082.",
"chooseSecondWhen": "Imperial Purple is better when the design needs balanced purple character, cool temperature, and the specific HEX value #602F6B.",
"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/indigo-vs-imperial-purple.json",
"https://www.colorsencyclopedia.com/api/colors/indigo.json",
"https://www.colorsencyclopedia.com/api/colors/imperial-purple.json"
],
"url": "https://www.colorsencyclopedia.com/compare/indigo-vs-imperial-purple/",
"apiUrl": "https://www.colorsencyclopedia.com/api/compare/indigo-vs-imperial-purple.json"
}